40 packages found
Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.
Convert query strings to numbers for express/connect applications.
Parses and manipulates multiple comma-separated integer ranges (eg 1-3,8-10)
An ES-spec-compliant `parseInt` shim/polyfill/replacement that works as far down as ES3
Abaco an ultra fast number parser for Buffers. It parses a Buffer or a portion of it to get the Number value stored as (ASCII) String.
parse Chinese numeric strings to integer
A tool to parse numbers from different locales
An ES-spec-compliant Number.parseInt shim/polyfill/replacement that works as far down as ES3
This is a JavaScript utility. It returns `true` if the value is a string number written in fixed notation and in decimal base.
Returns sensible integer value of a given variable. Unlike parseInt it will never return NaN and you can set a default value to be returned in case the variable is undefined! Hence you can write even cleaner code. So if it's supposed to be an integer, cas
- intval
- int val
- int value
- integer value
- int
- integer
- parseint
- parse int
- parse integer
- number
- numeric
- type
- typecast
- isnan
- View more
parse Chinese numeric strings to integer
Convert to/from integer in any base
Function will convert incoming value as integer. If argument is not a number, function will return 0.
If this parseInt() encounters an invalid digit, it fails loudly instead of returning a partially parsed number.
Common typescript ready prototypes available in both CommonJS and ECMAScript
- server-side
- client-side
- common
- typescript
- prototype
- array
- all
- any
- append
- average
- chunk
- clone
- compact
- contains
- View more
isNumber, isOdd, isEven, isNumeric, isNotNumber, isPrime, findPrimeToN
Parse integers from comma separated string, including ranges.
A JavaScript/Typescript library for fast type checking. Check if a given value is a string, number, object, ...