(array, predicate)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected