MCPcopy Create free account
hub / github.com/browserify/crypto-browserify / filter

Function filter

example/bundle.js:206–212  ·  view source on GitHub ↗
(xs, fn)

Source from the content-addressed store, hash-verified

204
205require.define('path', function (require, module, exports, __dirname, __filename) {
206 function filter(xs, fn) {
207 var res = [];
208 for (var i = 0; i < xs.length; i++) {
209 if (fn(xs[i], i, xs)) { res.push(xs[i]); }
210 }
211 return res;
212 }
213
214 // resolves . and .. elements in a path array with directory names there
215 // must be no slashes, empty elements, or device names (c:\) in the array

Callers 1

bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…