(...fns)
| 97 | } |
| 98 | |
| 99 | function compose(...fns) { |
| 100 | return fns.reduceRight( function reducer(fn1,fn2){ |
| 101 | return function composed(...args){ |
| 102 | return fn2( fn1( ...args ) ); |
| 103 | }; |
| 104 | } ); |
| 105 | } |
| 106 | |
| 107 | function prop(name,obj) { |
| 108 | return obj[name]; |