Toolbox-XToolbox-X
GuardsFunction Guards

Check Promise

Determines if a value is a Promise (thenable object).

isPromise

Determines if a value is a Promise (thenable object). Works with native Promises and most Promise implementations.

Import

import { isPromise } from 'toolbox-x/guards';

Signature

function isPromise<T>(value: unknown): value is Promise<T>

Examples

playground.ts

Notes

  • Detects both native Promises and thenables
  • Works across different Promise implementations
  • Useful for promise unwrapping utilities

Last updated: Fri, May 29, 2026 01:48:31PM (UTC)

On this page