MCPcopy Create free account
hub / github.com/dashnowords/imfe / cloneArray

Function cloneArray

chapter17/velocity.js:135–137  ·  view source on GitHub ↗

* Clone an array, works for array-like too.

(arrayLike)

Source from the content-addressed store, hash-verified

133 * Clone an array, works for array-like too.
134 */
135 function cloneArray(arrayLike) {
136 return Array.prototype.slice.call(arrayLike, 0);
137 }
138 /**
139 * The <strong><code>defineProperty()</code></strong> function provides a
140 * shortcut to defining a property that cannot be accidentally iterated across.

Callers 2

findPatternFunction · 0.85
Velocity$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected