Socket
Socket
Sign inDemoInstall

ramda

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramda - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

.npmignore

25

package.json

@@ -12,3 +12,3 @@ {

"description": "A practical functional library for Javascript programmers.",
"version": "0.1.4",
"version": "0.1.5",
"homepage": "https://www.github.com/CrossEye/ramda",

@@ -24,3 +24,24 @@ "license": "MIT",

},
"dependencies": {}
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.7",
"grunt-mocha": "~0.3.4",
"grunt-docco": "latest",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-uglify": "~0.2.2",
"grunt-mocha-test": "~0.5.0",
"grunt-istanbul": "~0.2.4"
},
"extraDevDependencies -- if we want to use Gulp": {
"gulp-rename": "~0.2.1",
"gulp-jshint": "~1.3.2",
"gulp-uglify": "~0.1.0",
"gulp-mocha": "~0.1.0",
"gulp-clean": "~0.1.2",
"gulp-util": "~2.2.0",
"gulp-header": "godaddy/gulp-header",
"gulp-istanbul": "~0.1.0",
"moment": "~2.5.0"
}
}

27

ramda.js

@@ -94,9 +94,14 @@ // ramda.js 0.0.1

var nAry = R.nAry = (function() {
var cache = {};
var cache = {
0: function(func) {return function() {return func.call(this);};},
1: function(func) {return function(arg0) {return func.call(this, arg0);};},
2: function(func) {return function(arg0, arg1) {return func.call(this, arg0, arg1);};},
3: function(func) {return function(arg0, arg1, arg2) {return func.call(this, arg0, arg1, arg2);};}
};
// For example:
// cache[3] = function(func) {
// return function(arg0, arg1, arg2) {
// return func.call(this, arg0, arg1, arg2);
// cache[5] = function(func) {
// return function(arg0, arg1, arg2, arg3, arg4) {
// return func.call(this, arg0, arg1, arg2, arg3, arg4);
// }

@@ -124,7 +129,12 @@ // };

var arity = R.arity = (function() {
var cache = {};
var cache = {
0: function(func) {return function() {return func.apply(this, arguments);};},
1: function(func) {return function(arg0) {return func.apply(this, arguments);};},
2: function(func) {return function(arg0, arg1) {return func.apply(this, arguments);};},
3: function(func) {return function(arg0, arg1, arg2) {return func.apply(this, arguments);};}
};
// For example:
// cache[3] = function(func) {
// return function(arg0, arg1, arg2) {
// cache[5] = function(func) {
// return function(arg0, arg1, arg2, arg3, arg4) {
// return func.apply(this, arguments);

@@ -618,2 +628,3 @@ // }

// Returns a new list containing the first `n` elements of the given list.
// if `n > list.length`, take will return a list if `list.length` elements.
var take = R.take = _(function(n, list) {

@@ -624,3 +635,3 @@ if (hasMethod('take', list)) {

var ls = clone(list);
ls.length = n;
ls.length = Math.min(n, list.length);
return ls;

@@ -627,0 +638,0 @@ });

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