* 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)
| 14085 | * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. |
| 14086 | */ |
| 14087 | function arrayLikeToArrayLike(arrayFrom, arrayTo) { |
| 14088 | for (var i = 0; i < arrayFrom.length; i++) { |
| 14089 | arrayTo[i] = arrayFrom[i]; |
| 14090 | } |
| 14091 | return arrayTo; |
| 14092 | } |
| 14093 | |
| 14094 | // a matrix containing functions to transform everything into everything. |
| 14095 | var transform = {}; |