private asyncFilter = (arr, predicate) => {
return Promise.all(arr.map(predicate))
.then((results) => arr.filter((_v, index) => results[index]));
}
For further actions, you may consider blocking this person and/or reporting abuse
private asyncFilter = (arr, predicate) => {
return Promise.all(arr.map(predicate))
.then((results) => arr.filter((_v, index) => results[index]));
}
For further actions, you may consider blocking this person and/or reporting abuse
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Nik Dyankov -
Aaron K Saunders -
Divya -
Rukesh Basukala -
Top comments (0)