deno.com
method Float16Array.with
#Float16Array.with(
index: number,
value: number,
): Float16Array<ArrayBuffer>

Copies the array and inserts the given number at the provided index.

Parameters #

#index: number

The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.

#value: number

The value to insert into the copied array.

Return Type #

Float16Array<ArrayBuffer>

A copy of the original array with the inserted value.