MCPcopy Create free account
hub / github.com/75team/SublimeJS / isPromiseLike

Function isPromiseLike

SublimeJS/js/when.js:522–524  ·  view source on GitHub ↗

* Determines if x is promise-like, i.e. a thenable object * NOTE: Will return true for *any thenable object*, and isn't truly * safe, since it may attempt to access the `then` property of x (i.e. * clever/malicious getters may do weird things) * @param {*} x anything * @returns {boolean}

(x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected