1.2.2 • Published 6 years ago

to-safe-integer-x v1.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

to-safe-integer-x

Constructs and returns a new string which contains the specified number of copies of the string.

module.exports*

Converts value to a safe integer.

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

ParamTypeDescription
value*The value to convert.

Example

import {toSafeInteger} from 'to-safe-integer-x';

console.log(toSafeInteger(3)); // 3
console.log(toSafeInteger(Number.MIN_VALUE)); // 0
console.log(toSafeInteger(Infinity)); // 9007199254740991
console.log(toSafeInteger(-Infinity)); // -9007199254740991
console.log(toSafeInteger('3')); // 3
1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago