1.2.2 • Published 5 years ago

to-safe-integer-x v1.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 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

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago