UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

9 lines 284 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAPromise = void 0; /** * checks whether the value is a promise */ const isAPromise = (obj) => Promise.resolve(obj) === obj; exports.isAPromise = isAPromise; //# sourceMappingURL=isAPromise.js.map