Guest User

Untitled

a guest
Feb 25th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. function compose(fn) {
  2. var fn = [].slice.call(arguments);
  3. return function(value) {
  4. while(fn.length > 0) {
  5. value = fn.pop()(value);
  6. }
  7. return value;
  8. }
  9. }
Add Comment
Please, Sign In to add comment