Comparing version 0.1.0 to 0.1.1
module.exports = function cu(fn) { | ||
var args = [].slice.call(arguments); | ||
if ('function' !== typeof fn) throw new Error('auto-curry: Invalid parameter. First parameter should be a function.'); | ||
if ('function' === typeof fn && !fn.length) return fn; | ||
@@ -4,0 +5,0 @@ if (args.length - 1 >= fn.length) return fn.apply(this, args.slice(1)); |
{ | ||
"name": "auto-curry", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Supercharge your functions by giving them the ability to auto-curry", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10
2886