MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / setAt

Function setAt

src/Map.js:831–835  ·  view source on GitHub ↗
(array, idx, val, canEdit)

Source from the content-addressed store, hash-verified

829}
830
831function setAt(array, idx, val, canEdit) {
832 const newArray = canEdit ? array : arrCopy(array);
833 newArray[idx] = val;
834 return newArray;
835}
836
837function spliceIn(array, idx, val, canEdit) {
838 const newLen = array.length + 1;

Callers 2

updateMethod · 0.85
updateMethod · 0.85

Calls 1

arrCopyFunction · 0.85

Tested by

no test coverage detected