"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFulfilledValues = exports.isRejected = exports.isFulfilled = void 0;
// You can use these to filter successful or rejected promises using Promise.allSettled
const isFulfilled = (input) => input.status === 'fulfilled';
exports.isFulfilled = isFulfilled;
const isRejected = (input) => input.status === 'rejected';
exports.isRejected = isRejected;
const getFulfilledValues = (results) => results.filter(exports.isFulfilled).map((result) => result.value);
exports.getFulfilledValues = getFulfilledValues;
//# sourceMappingURL=promises.js.map