MCPcopy Create free account
hub / github.com/hoothin/UserScripts / arrayLikeToArrayLike

Function arrayLikeToArrayLike

Picviewer CE+/dist.user.js:3507–3512  ·  view source on GitHub ↗

* Copy the data from an array-like to an other array-like. * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array. * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated. * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated des

(arrayFrom, arrayTo)

Source from the content-addressed store, hash-verified

3505 * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array.
3506 */
3507function arrayLikeToArrayLike(arrayFrom, arrayTo) {
3508 for (var i = 0; i < arrayFrom.length; i++) {
3509 arrayTo[i] = arrayFrom[i];
3510 }
3511 return arrayTo;
3512}
3513
3514// a matrix containing functions to transform everything into everything.
3515var transform = {};

Callers 1

dist.user.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected