Comparing version 0.0.2 to 0.0.3
{ | ||
"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" | ||
} | ||
"name": "sift", | ||
"description": "mongodb query style array filtering", | ||
"version": "0.0.3", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/crcn/sift.js.git" | ||
}, | ||
"repository": {}, | ||
"engines": {}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"vows": "*", | ||
"underscore": "*", | ||
"colors": "*", | ||
"benchmark": "*", | ||
"express": "*", | ||
"validator": "*" | ||
}, | ||
"main": "./sift.js", | ||
"scripts": { | ||
"test": "vows --spec" | ||
} | ||
} |
## MongoDB inspired array filtering [![Build Status](https://secure.travis-ci.org/crcn/sift.js.png)](https://secure.travis-ci.org/crcn/sift.js) | ||
Sift is the write less, do more filtering library which uses mongodb queries. | ||
Sift is a small (2 kb minified), write less, do more filtering library which uses mongodb queries. | ||
@@ -38,3 +38,3 @@ | ||
name: function(value) { | ||
return name.length == 5; | ||
return value.length == 5; | ||
} | ||
@@ -41,0 +41,0 @@ }); |
@@ -311,3 +311,3 @@ /* | ||
return !n || false; | ||
return !n; | ||
@@ -333,3 +333,3 @@ }, | ||
return !n || false; | ||
return !n; | ||
@@ -469,3 +469,4 @@ }, | ||
//set the test function incase the sifter isn't needed | ||
self.test = filter.test; | ||
self.test = filter.test; | ||
self.query = query; | ||
@@ -472,0 +473,0 @@ return self; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50887
14
612