Comparing version 0.1.0 to 0.2.0
exports = module.exports = ap; | ||
function ap (args, fn) { | ||
return function () { | ||
return fn.apply(this, args.concat.apply(args, arguments)); | ||
var rest = [].slice.call(arguments) | ||
, first = args.slice() | ||
first.push.apply(first, rest) | ||
return fn.apply(this, first); | ||
}; | ||
@@ -11,3 +14,5 @@ } | ||
return function () { | ||
return fn.apply(this, [].slice.call(arguments).concat(args)); | ||
var rest = [].slice.call(arguments) | ||
rest.push.apply(rest, args) | ||
return fn.apply(this, rest); | ||
}; | ||
@@ -14,0 +19,0 @@ } |
{ | ||
"name" : "ap", | ||
"version" : "0.1.0", | ||
"version" : "0.2.0", | ||
"description" : "Currying in javascript. Like .bind() without also setting `this`.", | ||
@@ -5,0 +5,0 @@ "main" : "./index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
5892
151
0
1