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 = () => {
- {Array.apply(0, Array(numFlyouts - depth)).map((_item, index: number) => (
+ {Array.from({ length: numFlyouts - depth }).map((_value, index) => (