objfilter
Array.prototype.filter
for objects.
Usage
var assert = ;var objfilter = ; var o1 = a: 1 b: -1 c: 0 d: 42; ; // => `{ a: 1, d: 42 }`
API
objfilter(obj, iterator, this)
obj
(object
) - object to filter oniterator
(function
, required) - iterator functionthis
(optional) -this
foriterator
Creates a new object with all the elements that pass the test implemented by
iterator
.