| // Returns a function that is the composition of a list of functions, each | |
| // consuming the return value of the function that follows. | |
| 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; | |
| }; | |
| } | |
| module.exports = compose; | |
Xet Storage Details
- Size:
- 411 Bytes
- Xet hash:
- 09744b066aa5e53023bdae995916660e82b088daa9ac04a87dc837d38de30bfc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.