(xs, fn)
| 204 | |
| 205 | require.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 |
no outgoing calls
no test coverage detected
searching dependent graphs…