Comparing version 0.6.8 to 0.6.9
@@ -34,2 +34,3 @@ "use strict"; | ||
exports.queryFoundInObject = queryFoundInObject; | ||
exports.where = where; | ||
@@ -230,5 +231,2 @@ /** | ||
return []; | ||
} else if (Array.isArray(input)){ | ||
// nothing to do | ||
return input; | ||
} else if (isPlainObject(input) && input.length >= 0 && input.length === Math.floor(input.length)){ | ||
@@ -404,2 +402,5 @@ return Array.prototype.slice.call(input); | ||
/** | ||
docs todo | ||
*/ | ||
function queryFoundInObject(object, query){ | ||
@@ -415,2 +416,11 @@ var found = true; | ||
/** | ||
docs todo | ||
*/ | ||
function where(arrayOfObjects, query){ | ||
return arrayOfObjects.filter(function(item){ | ||
return w.queryFoundInObject(item, query); | ||
}); | ||
} | ||
/** | ||
Returns the input array, minus the specied values | ||
@@ -417,0 +427,0 @@ @param {Array} - the input array |
{ | ||
"name": "wodge", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "a wodge of functional dough", | ||
@@ -5,0 +5,0 @@ "main": "lib/wodge.js", |
31883
711