FunctionsNumberstoIntOn this pagetoIntConvert a value to an int if possible. API function toInt<T extends number | null = number>(value: any, defaultValue?: T): number | T; Usage import { toInt } from '@feedzai/js-utilities';toInt("0")// => 0toInt(null)// => 0toInt(null, 3)// => 3