Comparing version 0.6.10 to 0.6.11
@@ -35,2 +35,3 @@ "use strict"; | ||
exports.where = where; | ||
exports.findWhere = findWhere; | ||
@@ -423,2 +424,10 @@ /** | ||
/** | ||
docs todo | ||
*/ | ||
function findWhere(arrayOfObjects, query){ | ||
var result = where(arrayOfObjects, query); | ||
return result.length ? result[0] : null; | ||
} | ||
/** | ||
Returns the input array, minus the specied values | ||
@@ -425,0 +434,0 @@ @param {Array} - the input array |
{ | ||
"name": "wodge", | ||
"version": "0.6.10", | ||
"version": "0.6.11", | ||
"description": "a wodge of functional dough", | ||
@@ -5,0 +5,0 @@ "main": "lib/wodge.js", |
33130
15
750