Sha256: e58dfd8af154b19e4fbffe9ddc9dc2ab35bbd80f2054bc4a75ceff46f77e961b
Contents?: true
Size: 256 Bytes
Versions: 26
Compression:
Stored size: 256 Bytes
Contents
/** * Returns true if the value acts like a Promise, i.e. has a "then" function, * otherwise returns false. */ export function isPromise(value) { return ( typeof (value === null || value === void 0 ? void 0 : value.then) === 'function' ); }
Version data entries
26 entries across 26 versions & 1 rubygems