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