From 705e9ffa0a41f3549b06bc05e210281f5a754df5 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:46:26 -0500 Subject: [PATCH] chore(misc): clean up instances of Array.apply (#9798) * clean up instances of Array.apply * rename item to value --- .../react-core/src/components/Nav/examples/NavFlyout.tsx | 2 +- .../src/components/Nav/examples/NavHorizontalSubNav.tsx | 2 +- .../src/components/Nav/examples/NavLegacyTertiary.tsx | 2 +- .../components/Pagination/examples/PaginationSticky.tsx | 4 ++-- packages/react-core/src/demos/Banner.md | 8 ++++---- .../src/demos/examples/BackToTop/BackToTopNameDemo.tsx | 6 +++--- .../Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx | 4 ++-- packages/react-core/src/demos/examples/Nav/NavDefault.tsx | 2 +- .../react-core/src/demos/examples/Nav/NavExpandable.tsx | 2 +- .../react-core/src/demos/examples/Nav/NavHorizontal.tsx | 2 +- .../src/demos/examples/Nav/NavHorizontalWithSubnav.tsx | 2 +- packages/react-core/src/demos/examples/Nav/NavManual.tsx | 2 +- .../react-core/src/demos/examples/Nav/NavWithSubnav.tsx | 2 +- .../src/demos/examples/Nav/deprecated/NavLight.tsx | 2 +- .../src/demos/examples/Nav/deprecated/NavTertiary.tsx | 2 +- .../demos/examples/Page/PageStickySectionBreadcrumb.tsx | 4 ++-- .../src/demos/examples/Page/PageStickySectionGroup.tsx | 4 ++-- .../examples/Page/PageStickySectionGroupAlternate.tsx | 4 ++-- packages/react-core/src/demos/examples/Wizard/InModal.tsx | 4 ++-- .../src/components/demos/BackToTopDemo/BackToTopDemo.tsx | 6 +++--- 20 files changed, 33 insertions(+), 33 deletions(-) diff --git a/packages/react-core/src/components/Nav/examples/NavFlyout.tsx b/packages/react-core/src/components/Nav/examples/NavFlyout.tsx index 9bcbed30be6..6e80b16ba9d 100644 --- a/packages/react-core/src/components/Nav/examples/NavFlyout.tsx +++ b/packages/react-core/src/components/Nav/examples/NavFlyout.tsx @@ -22,7 +22,7 @@ export const NavFlyout: React.FunctionComponent = () => { Next menu - {Array.apply(0, Array(numFlyouts - depth)).map((_item, index: number) => ( + {Array.from({ length: numFlyouts - depth }).map((_value, index) => ( { return (