diff --git a/src/create-fixed-array/index.ts b/src/create-fixed-array/index.ts index c0ebede9..3fd74935 100644 --- a/src/create-fixed-array/index.ts +++ b/src/create-fixed-array/index.ts @@ -1,6 +1,6 @@ -const arrayMap: Record = {}; +const arrayMap: Record = {}; -export const createFixedArray = (length: number): readonly unknown[] => { +export const createFixedArray = (length: number): readonly number[] => { arrayMap[length] ||= arrayMap[length] || Array.from(Array(length).keys()); return arrayMap[length]; };