MCPcopy
hub / github.com/aframevr/aframe / copyArray

Function copyArray

src/components/raycaster.js:457–463  ·  view source on GitHub ↗

* Copy contents of one array to another without allocating new array.

(a, b)

Source from the content-addressed store, hash-verified

455 * Copy contents of one array to another without allocating new array.
456 */
457function copyArray (a, b) {
458 var i;
459 a.length = b.length;
460 for (i = 0; i < b.length; i++) {
461 a[i] = b[i];
462 }
463}

Callers 1

raycaster.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected