tointeger
Convert value to an integer value.
Please note that this is not an ecma262 "tointeger" implementation,
but just a safer version of what you usually want from parseInt()
to a value to integer value.
Installation
$ npm install tointeger
API
; ;// => 1 ;// => 5 ;// => 0 ;// => 0
Running tests
$ npm test