MCPcopy Create free account
hub / github.com/evildecay/etcdkeeper / arrayFilter

Function arrayFilter

assets/etcdkeeper/framework/ace/worker-javascript.js:1964–1977  ·  view source on GitHub ↗
(array, predicate)

Source from the content-addressed store, hash-verified

1962 }
1963
1964 function arrayFilter(array, predicate) {
1965 var index = -1,
1966 length = array.length,
1967 resIndex = -1,
1968 result = [];
1969
1970 while (++index < length) {
1971 var value = array[index];
1972 if (predicate(value, index, array)) {
1973 result[++resIndex] = value;
1974 }
1975 }
1976 return result;
1977 }
1978
1979 function arrayMap(array, iteratee) {
1980 var index = -1,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected