to-integer-x

WebJar for to-integer-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

to-integer-x
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

to-integer-x
WebJar for to-integer-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/to-integer-x

Download to-integer-x

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : is-finite-x jar [3.0.2,4)
org.webjars.npm : is-nan-x jar [1.0.1,2)
org.webjars.npm : math-sign-x jar [3.0.0,4)
org.webjars.npm : to-number-x jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

to-integer-x

ToInteger converts 'argument' to an integral numeric value.

module.exports(string)number

to-integer-xnumber

Converts value to an integer. (ES2019)

Kind: static property of to-integer-x
Returns: number - Returns the converted integer.

Param Type Description
value * The value to convert.

Example

import toInteger from 'to-integer-x';

console.log(toInteger(3)); // 3
console.log(toInteger(Number.MIN_VALUE)); // 0
console.log(toInteger(Infinity)); // 1.7976931348623157e+308
console.log(toInteger('3')); // 3

Versions

Version
3.0.0