MCPcopy Create free account
hub / github.com/postcss/postcss / isPromise

Function isPromise

lib/lazy-result.js:49–51  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

47const CHILDREN = 0
48
49function isPromise(obj) {
50 return typeof obj === 'object' && typeof obj.then === 'function'
51}
52
53function getEvents(node) {
54 let key = false

Callers 4

runAsyncMethod · 0.85
runOnRootMethod · 0.85
syncMethod · 0.85
visitSyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…