Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (6 sloc) 217 Bytes
export function fill<T>(array: T[], value: T, startIndex: number = 0, endIndex: number = array.length) {
for (let index = startIndex; index < endIndex; index += 1) {
array[index] = value;
}
return array;
}
You can’t perform that action at this time.