Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 699 Bytes

vector.arrayvector.set.md

File metadata and controls

27 lines (16 loc) · 699 Bytes

Home > @josh-brown/vector > ArrayVector > set

ArrayVector.set() method

Returns a new vector equal to the old one, except with the entry at index replaced with value

Signature:

set(index: number, value: S): Vector<S>;

Parameters

Parameter Type Description
index number The index of the value to replace
value S The new value

Returns:

Vector<S>

The new vector