@teleology/fp
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -8,4 +8,13 @@ "use strict"; | ||
const curry = fn => (...args) => fn.bind(null, ...args); | ||
const curry = fn => (...args) => fn.bind(null, ...args); // export const curry = (arity = 0, fn) => (...args) => { | ||
// // we have surpassed the expected arity, so invoke the final function | ||
// if (arity <= args.length) { | ||
// return fn(...args); | ||
// } | ||
// // we still have args we can bind, recurse | ||
// const bound = fn.bind(fn, ...args); | ||
// return curry(arity - args.length, bound); | ||
// }; | ||
exports.curry = curry; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const get = (path, def) => obj => { | ||
const get = (path, def = undefined) => obj => { | ||
try { | ||
@@ -15,0 +15,0 @@ return (0, _dot.dot)(path).reduce((a, b) => a[b], obj); |
{ | ||
"name": "@teleology/fp", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A small collection of functional programming utils", | ||
@@ -41,6 +41,3 @@ "author": "Chris Sullivan <chrissullivan.dev@gmail.com>", | ||
"prettier": "^2.0.5" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.21" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20669
0
413
- Removedlodash@^4.17.21
- Removedlodash@4.17.21(transitive)