Sha256: bad7f47a643b95870eecc4cf69695672d35169c6773a1fb7eadcd2fceb4cc18d
Contents?: true
Size: 661 Bytes
Versions: 153
Compression:
Stored size: 661 Bytes
Contents
var createWrapper = require('./createWrapper'), isIterateeCall = require('./isIterateeCall'); /** * Creates a `_.curry` or `_.curryRight` function. * * @private * @param {boolean} flag The curry bit flag. * @returns {Function} Returns the new curry function. */ function createCurry(flag) { function curryFunc(func, arity, guard) { if (guard && isIterateeCall(func, arity, guard)) { arity = undefined; } var result = createWrapper(func, flag, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryFunc.placeholder; return result; } return curryFunc; } module.exports = createCurry;
Version data entries
153 entries across 80 versions & 8 rubygems