- fill<T>(array, value): T[]
Parameters
- array: undefined | null | any[]
- value: T
Returns T[]
Returns array.
- fill<T>(array, value): List<T>
Parameters
- array: undefined | null | List<any>
- value: T
Returns List<T>
- fill<T, U>(array, value, start?, end?): (T | U)[]
Parameters
- array: undefined | null | U[]
- value: T
Optional
start: numberOptional
end: number
Returns (T | U)[]
- fill<T, U>(array, value, start?, end?): List<T | U>
Parameters
- array: undefined | null | List<U>
- value: T
Optional
start: numberOptional
end: number
Returns List<T | U>
Fills elements of array with value from start up to, but not including, end.
Note: This method mutates array.