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