| // Returns a function that is the composition of a list of functions, each | |
| // consuming the return value of the function that follows. | |
| export default function compose() { | |
| var args = arguments; | |
| var start = args.length - 1; | |
| return function() { | |
| var i = start; | |
| var result = args[start].apply(this, arguments); | |
| while (i--) result = args[i].call(this, result); | |
| return result; | |
| }; | |
| } | |
Xet Storage Details
- Size:
- 399 Bytes
- Xet hash:
- ecb5bb2e59c63c44decfeb0419ebff7b9f272eb51df2be41854158a31a0c0122
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.