MCPcopy Create free account
hub / github.com/Stuk/jszip / arrayLikeToArrayLike

Function arrayLikeToArrayLike

lib/utils.js:208–213  ·  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

206 * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array.
207 */
208function arrayLikeToArrayLike(arrayFrom, arrayTo) {
209 for (var i = 0; i < arrayFrom.length; i++) {
210 arrayTo[i] = arrayFrom[i];
211 }
212 return arrayTo;
213}
214
215// a matrix containing functions to transform everything into everything.
216var transform = {};

Callers 1

utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected