(xs, fn)
| 151 | require.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 |
no test coverage detected