is-promise

WebJar for is-promise

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-promise
Last Version

Last Version

2.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

is-promise
WebJar for is-promise
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/then/is-promise

Download is-promise

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-promise/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-promise</artifactId>
    <version>2.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-promise/
implementation 'org.webjars.npm:is-promise:2.2.2'
// https://jarcasting.com/artifacts/org.webjars.npm/is-promise/
implementation ("org.webjars.npm:is-promise:2.2.2")
'org.webjars.npm:is-promise:jar:2.2.2'
<dependency org="org.webjars.npm" name="is-promise" rev="2.2.2">
  <artifact name="is-promise" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-promise', version='2.2.2')
)
libraryDependencies += "org.webjars.npm" % "is-promise" % "2.2.2"
[org.webjars.npm/is-promise "2.2.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

org.webjars.npm

then (Promises/A+ implementations)

Versions

Version
2.2.2
2.1.0