(arr1,arr2)
| 85 | } |
| 86 | |
| 87 | function zip(arr1,arr2) { |
| 88 | var zipped = []; |
| 89 | arr1 = [...arr1]; |
| 90 | arr2 = [...arr2]; |
| 91 | |
| 92 | while (arr1.length > 0 && arr2.length > 0) { |
| 93 | zipped.push( [ arr1.shift(), arr2.shift() ] ); |
| 94 | } |
| 95 | |
| 96 | return zipped; |
| 97 | } |
| 98 | |
| 99 | function compose(...fns) { |
| 100 | return fns.reduceRight( function reducer(fn1,fn2){ |
no outgoing calls
no test coverage detected