* 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)
| 3505 | * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. |
| 3506 | */ |
| 3507 | function 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. |
| 3515 | var transform = {}; |