New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fj-flip

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fj-flip - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

index.js
"use strict";
module.exports = function (fn) {
return function () {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return function () {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var params = [].slice.call(args, 0);
params = params.slice(1, 2).concat(params.slice(0, 1)).concat(params.slice(2));
return fn.apply(null, params);
};
args = args.slice(1, 2).concat(args.slice(0, 1)).concat(args.slice(2));
return fn.apply(null, args);
};
};
{
"name": "fj-flip",
"version": "1.0.0",
"version": "1.0.1",
"description": "Given a function, returns a new function with the first two arguments flipped.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,5 +13,5 @@ "use strict";

var flipDiv = flip(div);
console.log(flipDiv.toString());
it("fj-flip", function () {
assert.equal(flipDiv(3, 2), 0.6666666666666666);
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc