MCPcopy Create free account
hub / github.com/NVlabs/SPADE / filter

Function filter

docs/lib.js:146–151  ·  view source on GitHub ↗
(list, func)

Source from the content-addressed store, hash-verified

144}
145
146function filter(list, func) {
147 var result = [];
148 func = func || function(v) {return v};
149 map(list, function(v) { if (func(v)) result.push(v) } );
150 return result;
151}
152
153
154// DOM

Callers 1

getElementsByClassFunction · 0.85

Calls 1

mapFunction · 0.85

Tested by

no test coverage detected