lodash.negate
Advanced tools
Comparing version 3.0.1 to 3.0.2
24
index.js
/** | ||
* lodash 3.0.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
* lodash (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
@@ -20,5 +20,6 @@ | ||
* @memberOf _ | ||
* @since 3.0.0 | ||
* @category Function | ||
* @param {Function} predicate The predicate to negate. | ||
* @returns {Function} Returns the new function. | ||
* @returns {Function} Returns the new negated function. | ||
* @example | ||
@@ -38,3 +39,10 @@ * | ||
return function() { | ||
return !predicate.apply(this, arguments); | ||
var args = arguments; | ||
switch (args.length) { | ||
case 0: return !predicate.call(this); | ||
case 1: return !predicate.call(this, args[0]); | ||
case 2: return !predicate.call(this, args[0], args[1]); | ||
case 3: return !predicate.call(this, args[0], args[1], args[2]); | ||
} | ||
return !predicate.apply(this, args); | ||
}; | ||
@@ -41,0 +49,0 @@ } |
{ | ||
"name": "lodash.negate", | ||
"version": "3.0.1", | ||
"description": "The modern build of lodash’s `_.negate` as a module.", | ||
"version": "3.0.2", | ||
"description": "The lodash method `_.negate` exported as a module.", | ||
"homepage": "https://lodash.com/", | ||
"icon": "https://lodash.com/icon.svg", | ||
"license": "MIT", | ||
"keywords": "lodash, lodash-modularized, stdlib, util", | ||
"keywords": "lodash-modularized, negate", | ||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"contributors": [ | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)", | ||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)", | ||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)", | ||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" | ||
@@ -16,0 +14,0 @@ ], |
@@ -1,4 +0,4 @@ | ||
# lodash.negate v3.0.1 | ||
# lodash.negate v3.0.2 | ||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.negate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
The [lodash](https://lodash.com/) method `_.negate` exported as a [Node.js](https://nodejs.org/) module. | ||
@@ -8,3 +8,2 @@ ## Installation | ||
Using npm: | ||
```bash | ||
@@ -15,4 +14,3 @@ $ {sudo -H} npm i -g npm | ||
In Node.js/io.js: | ||
In Node.js: | ||
```js | ||
@@ -22,2 +20,2 @@ var negate = require('lodash.negate'); | ||
See the [documentation](https://lodash.com/docs#negate) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.negate) for more details. | ||
See the [documentation](https://lodash.com/docs#negate) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.negate) for more details. |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
4647
46
1
19