toNumberCoerce a value to a finite number, or null when unconvertibleutils-tonumberlogUtilsindex.jsCoercionReturns null on anything unparseable and never hands back NaN or Infinity, so toNumber(x) ?? fallback gives a clean default["utils","coercion","tonumber","number","parse"]Example
Categories