Returns the value as a Number or BigInt if possible, otherwise returns the original string.
The string, number, or bigint to process
Whether to strip leading zeros when evaluating numeric strings
The numeric coercion or the original string
const num = ifNumeric('123'); // 123 Copy
const num = ifNumeric('123'); // 123
Returns the value as a Number or BigInt if possible, otherwise returns the original string.