diff --git a/v3-docs/docs/components/scripts/map-maker.js b/v3-docs/docs/components/scripts/map-maker.js index e4ca8ea9a0..e762ed82d9 100644 --- a/v3-docs/docs/components/scripts/map-maker.js +++ b/v3-docs/docs/components/scripts/map-maker.js @@ -88,11 +88,9 @@ export function createMap(names) { "IterationCallback", ]; - Object.keys(apiList).forEach((key) => { - if (TO_IGNORE.includes(key)) { - delete apiList[key]; - } - }); + for (const key of Object.keys(apiList)) + if (TO_IGNORE.includes(key)) delete apiList[key]; + return apiList; }