MCPcopy Index your code
hub / github.com/Effect-TS/effect / isPromiseLike

Function isPromiseLike

packages/effect/src/Predicate.ts:868–870  ·  view source on GitHub ↗
(
  input: unknown
)

Source from the content-addressed store, hash-verified

866 * @see isPromise
867 */
868export const isPromiseLike = (
869 input: unknown
870): input is PromiseLike<unknown> => hasProperty(input, "then") && isFunction(input.then)
871
872/**
873 * A refinement that checks if a value is a `RegExp`.

Callers 1

core.tsFile · 0.85

Calls 1

isFunctionFunction · 0.85

Tested by

no test coverage detected