Skip to main content

fill

method Float16Array.fill
Jump to headingFloat16Array.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

Parameters Jump to heading

Jump to headingvalue: number

value to fill array section with

optional
Jump to headingstart: number

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.

optional
Jump to headingend: number

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

Return Type Jump to heading

this
Back to top