MCPcopy Create free account
hub / github.com/play-co/devkit / setArrayContents

Function setArrayContents

src/util/obj.js:18–22  ·  view source on GitHub ↗
(contents)

Source from the content-addressed store, hash-verified

16 * Replace array contents with another array
17 */
18var setArrayContents = function (contents) {
19 // Replace values in existing array with values in other array
20 var args = [0, this.length].concat(contents);
21 this.splice.apply(this, args);
22};
23
24/**
25 * Sets the value at an array index

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…