MCPcopy
hub / github.com/preactjs/preact / isThenable

Function isThenable

test-utils/src/index.js:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13const isThenable = value => value != null && typeof value.then == 'function';
14
15/** Depth of nested calls to `act`. */
16let actDepth = 0;

Callers 1

actFunction · 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…