* Filter the provided array of promises using the provided predicate. Input may * contain promises and values * @param {Array|Promise} promises array of promises and values * @param {function(x:*, index:Number):boolean} predicate filtering predicate. * Must return truthy (or promise for tr
(promises, predicate)
| 218 | * for which predicate returned truthy. |
| 219 | */ |
| 220 | function filter(promises, predicate) { |
| 221 | return when(promises, function(promises) { |
| 222 | return Promise.filter(promises, predicate); |
| 223 | }); |
| 224 | } |
| 225 | |
| 226 | return when; |
| 227 | }); |
nothing calls this directly
no test coverage detected
searching dependent graphs…