to-integer-x
ToInteger converts 'argument' to an integral numeric value.
Last updated 7 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install to-integer-x 
SYNC missed versions from official npm registry.

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

Current Tags

  • 4.2.2                                ...           latest (7 years ago)

52 Versions

  • 4.2.2                                ...           7 years ago
  • 4.2.1                                ...           7 years ago
  • 4.2.0                                ...           7 years ago
  • 4.1.0                                ...           7 years ago
  • 4.0.29                                ...           7 years ago
  • 4.0.28                                ...           7 years ago
  • 4.0.27                                ...           7 years ago
  • 4.0.26                                ...           7 years ago
  • 4.0.25                                ...           7 years ago
  • 4.0.24                                ...           7 years ago
  • 4.0.23                                ...           7 years ago
  • 4.0.22                                ...           7 years ago
  • 4.0.21                                ...           7 years ago
  • 4.0.20                                ...           7 years ago
  • 4.0.19                                ...           7 years ago
  • 4.0.18                                ...           7 years ago
  • 4.0.17                                ...           7 years ago
  • 4.0.16                                ...           7 years ago
  • 4.0.15                                ...           7 years ago
  • 4.0.14                                ...           7 years ago
  • 4.0.13                                ...           7 years ago
  • 4.0.12                                ...           7 years ago
  • 4.0.11                                ...           7 years ago
  • 4.0.10                                ...           7 years ago
  • 4.0.9                                ...           7 years ago
  • 4.0.8                                ...           7 years ago
  • 4.0.7                                ...           7 years ago
  • 4.0.6                                ...           7 years ago
  • 4.0.5                                ...           7 years ago
  • 4.0.4                                ...           7 years ago
  • 4.0.3                                ...           7 years ago
  • 4.0.2                                ...           7 years ago
  • 4.0.1                                ...           7 years ago
  • 4.0.0                                ...           7 years ago
  • 3.0.0                                ...           8 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.4.0                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.3                                ...           9 years ago
  • 1.1.2                                ...           9 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.6                                ...           10 years ago
  • 1.0.5                                ...           10 years ago
  • 1.0.4                                ...           10 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 18
This Month 27
Last Day 4
Last Week 28
Last Month 21
Dependencies (4)

Copyright 2013 - present © cnpmjs.org | Home |