MCPcopy Create free account
hub / github.com/socketstream/socketstream / filter

Function filter

lib/client/bundler/browserify.client.js:153–159  ·  view source on GitHub ↗
(xs, fn)

Source from the content-addressed store, hash-verified

151require.define("path", function (require, module, exports) {
152 // deprecated. Array.filter will be used in the future ES5 shim required for older browsers.
153 function filter (xs, fn) {
154 var res = [];
155 for (var i = 0; i < xs.length; i++) {
156 if (fn(xs[i], i, xs)) res.push(xs[i]);
157 }
158 return res;
159 }
160
161 // resolves . and .. elements in a path array with directory names there
162 // must be no slashes, empty elements, or device names (c:\) in the array

Callers 1

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected