Socket
Socket
Sign inDemoInstall

ap

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

9

index.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc