fill

Bun

Symbol

Uint8Array.fill

fill(value: number, start?: number, end?: number): this

Changes all array elements from start to end index to a static value and returns the modified array

@param value

value to fill array section with

@param start

index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

@param end

index to stop filling the array at. If end is negative, it is treated as length+end.