Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "sift", | ||
"description": "mongodb query style array filtering", | ||
"version": "0.0.1", | ||
"repository": { | ||
}, | ||
"engines": { | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"vows":"*", | ||
"underscore":"*", | ||
"colors":"*", | ||
"benchmark":"*", | ||
"express":"*", | ||
"validator":"*" | ||
}, | ||
"main":"./sift.js", | ||
"scripts": { | ||
"test": "vows --spec" | ||
} | ||
} | ||
"name": "sift", | ||
"description": "mongodb query style array filtering", | ||
"version": "0.0.2", | ||
"repository": {}, | ||
"engines": {}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"vows": "*", | ||
"underscore": "*", | ||
"colors": "*", | ||
"benchmark": "*", | ||
"express": "*", | ||
"validator": "*" | ||
}, | ||
"main": "./sift.js", | ||
"scripts": { | ||
"test": "vows --spec" | ||
} | ||
} |
@@ -173,3 +173,3 @@ ## MongoDB inspired array filtering [![Build Status](https://secure.travis-ci.org/crcn/sift.js.png)](https://secure.travis-ci.org/crcn/sift.js) | ||
Checks if query != value. Note that **$eq can be omitted**. For **$eq**, and **$neq** | ||
Checks if query == value. Note that **$eq can be omitted**. For **$eq**, and **$neq** | ||
@@ -190,3 +190,3 @@ ```javascript | ||
Checks if query == value. | ||
Checks if query != value. | ||
@@ -193,0 +193,0 @@ ```javascript |
11
sift.js
@@ -299,4 +299,6 @@ /* | ||
for(var i = a.length; i--;) { | ||
var i = a.length, n = i; | ||
for(; i--;) { | ||
if(test(a[i], b)) { | ||
@@ -310,3 +312,3 @@ | ||
return false; | ||
return !n || false; | ||
@@ -320,4 +322,5 @@ }, | ||
var i = a.length, n = i; | ||
for(var i = a.length; i--;) { | ||
for(; i--;) { | ||
@@ -332,3 +335,3 @@ if(!test(a[i], b)) { | ||
return false; | ||
return !n || false; | ||
@@ -335,0 +338,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
42571
602