is-negative

WebJar for is-negative

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-negative
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-negative
WebJar for is-negative
Project URL

Project URL

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

Source Code Management

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

Download is-negative

How to add to project

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

Check if something is a negative number

Install

$ npm install --save is-negative

Usage

const isNegative = require('is-negative');

isNegative(-1);
//=> true

isNegative(1);
//=> false

isNegative(0);
//=> false

isNegative('-1');
//=> false

isNegative(Number(-1))
//=> true

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

Related

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

License

MIT © Kevin Martensson

Versions

Version
2.1.0