is-promise

WebJar for is-promise

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-then-is-promise
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-promise
WebJar for is-promise
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download github-com-then-is-promise

How to add to project

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

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.1.0