UNPKG

pretty-quick

Version:
9 lines 340 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.filterAsync = void 0; const filterAsync = async (items, predicate) => { const boolItems = await Promise.all(items.map(predicate)); return items.filter((_, i) => boolItems[i]); }; exports.filterAsync = filterAsync; //# sourceMappingURL=utils.js.map