MCPcopy Index your code
hub / github.com/getify/Functional-Light-JS / uncurry

Function uncurry

ch11-code/fp-helpers.js:75–85  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

73}
74
75function uncurry(fn) {
76 return function uncurried(...args){
77 var ret = fn;
78
79 for (let i = 0; i < args.length; i++) {
80 ret = ret( args[i] );
81 }
82
83 return ret;
84 };
85}
86
87function zip(arr1,arr2) {
88 var zipped = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected