From b7b339ff4efcdcfe9fb868037fd9ea6557b0efcf Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Wed, 20 Dec 2023 09:57:54 -0300 Subject: [PATCH] refactor --- v3-docs/docs/components/scripts/map-maker.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; }