EternalAI/node_modules/is-promise
chigulong 2a13044f12 Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
..
LICENSE Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
index.d.ts Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
index.js Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
index.mjs Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
package.json Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00
readme.md Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00

readme.md

is-promise

Test whether an object looks like a promises-a+ promise

Build Status Dependency Status NPM version

Installation

$ npm install is-promise

You can also use it client side via npm.

API

import isPromise from 'is-promise';

isPromise(Promise.resolve());//=>true
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>false

License

MIT