Comparing version 0.6.11 to 0.7.0
@@ -36,2 +36,4 @@ "use strict"; | ||
exports.findWhere = findWhere; | ||
exports.unique = unique; | ||
exports.defined = defined; | ||
@@ -577,1 +579,16 @@ /** | ||
} | ||
function unique(array){ | ||
return array.reduce(function(prev, curr){ | ||
if (prev.indexOf(curr) === -1) prev.push(curr); | ||
return prev; | ||
}, []); | ||
} | ||
function defined(object){ | ||
var output = {}; | ||
for (var prop in object){ | ||
if (object[prop] !== undefined) output[prop] = object[prop]; | ||
} | ||
return output; | ||
} |
{ | ||
"name": "wodge", | ||
"version": "0.6.11", | ||
"version": "0.7.0", | ||
"description": "a wodge of functional dough", | ||
@@ -5,0 +5,0 @@ "main": "lib/wodge.js", |
33983
17
787