UNPKG

froebel

Version:
19 lines (12 loc) 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRejected = exports.isFulfilled = void 0; /** Checks if `result` (returned from `Promise.allSettled`) is fulfilled. */ const isFulfilled = result => result.status === "fulfilled"; /** Checks if `result` (returned from `Promise.allSettled`) is rejected. */ exports.isFulfilled = isFulfilled; const isRejected = result => result.status === "rejected"; exports.isRejected = isRejected; module.exports = Object.assign(exports.default || {}, exports);