UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

4 lines (3 loc) 86 B
export function isPromise <T> (p?: any): p is Promise<T> { return p?.then != null }