MCPcopy
hub / github.com/Kong/insomnia / isPromise

Function isPromise

packages/insomnia/bin/yarn-standalone.js:68436–68438  ·  view source on GitHub ↗

* Check if `obj` is a promise. * * @param {Object} obj * @return {Boolean} * @api private

(obj)

Source from the content-addressed store, hash-verified

68434 */
68435
68436function isPromise(obj) {
68437 return 'function' == typeof obj.then;
68438}
68439
68440/**
68441 * Check if `obj` is a generator.

Callers 4

yarn-standalone.jsFile · 0.70
nextFunction · 0.70
toPromiseFunction · 0.70
objectToPromiseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected