* 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)
| 3241 | * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. |
| 3242 | */ |
| 3243 | function arrayLikeToArrayLike(arrayFrom, arrayTo) { |
| 3244 | for (var i = 0; i < arrayFrom.length; i++) { |
| 3245 | arrayTo[i] = arrayFrom[i]; |
| 3246 | } |
| 3247 | return arrayTo; |
| 3248 | } |
| 3249 | |
| 3250 | // a matrix containing functions to transform everything into everything. |
| 3251 | var transform = {}; |