1. ispromise
Test whether an object is a promises/A+ object or constructor.
ispromise
Package: ispromise
Created by: dracupid
Last modified: Sun, 19 Jun 2022 03:07:01 GMT
Version: 1.1.0
License: MIT
Downloads: 334
Repository: https://github.com/dracupid/ispromise

Install

npm install ispromise
yarn add ispromise
Promises/A+ logo

ispromise

Test whether an object/function is a promises/A+ object/function or constructor. More powerful then is-promise.

NPM version
Build Status

Installation

 npm i ispromise -S

Usage

 var isPromise = require('ispromise');

isPromise(Promise) // false
isPromise(Promise.resolve()) // true
isPromise.isConstructor(Promise) // true

License

MIT@Jingchen Zhao

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin