MCPcopy
hub / github.com/getify/Functional-Light-JS / unboundMethod

Function unboundMethod

ch11-code/fp-helpers.js:117–125  ·  view source on GitHub ↗
(methodName,argCount = 2)

Source from the content-addressed store, hash-verified

115}
116
117function unboundMethod(methodName,argCount = 2) {
118 return curry(
119 (...args) => {
120 var obj = args.pop();
121 return obj[methodName]( ...args );
122 },
123 argCount
124 );
125}

Callers 2

fp-helpers.jsFile · 0.85

Calls 1

curryFunction · 0.85

Tested by

no test coverage detected