toInt
Basic usage
The _.toInt
function will do its best to convert the given value to an int.
import { toInt } from 'radash'
toInt(0) // => 0toInt(null) // => 0toInt(null, 3) // => 3
The _.toInt
function will do its best to convert the given value to an int.
import { toInt } from 'radash'
toInt(0) // => 0toInt(null) // => 0toInt(null, 3) // => 3