is-positive

WebJar for is-positive

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-positive
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-positive
WebJar for is-positive
Project URL

Project URL

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

Source Code Management

https://github.com/kevva/is-positive

Download is-positive

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-positive/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-positive</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-positive/
implementation 'org.webjars.npm:is-positive:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-positive/
implementation ("org.webjars.npm:is-positive:3.1.0")
'org.webjars.npm:is-positive:jar:3.1.0'
<dependency org="org.webjars.npm" name="is-positive" rev="3.1.0">
  <artifact name="is-positive" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-positive', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "is-positive" % "3.1.0"
[org.webjars.npm/is-positive "3.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-positive Build Status

Check if something is a positive number

Install

$ npm install --save is-positive

Usage

const isPositive = require('is-positive');

isPositive(1);
//=> true

isPositive(0);
//=> false

isPositive(-1);
//=> false

isPositive('1');
//=> false

isPositive(Number(1))
//=> true

Note: This module doesn't consider 0 to be a positive number and doesn't distinguish between -0 and 0. If you want to detect 0, use the positive-zero module.

Related

  • is-negative - Check if something is a negative number

License

MIT © Kevin Martensson

Versions

Version
3.1.0