* 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)
| 206 | * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. |
| 207 | */ |
| 208 | function 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. |
| 216 | var transform = {}; |