Converts NaN values to undefined while preserving all other numbers.
This function is useful for handling potentially invalid numeric operations
in a type-safe way, converting NaN results to undefined for easier handling
with optional chaining or nullish coalescing.
Converts NaN values to undefined while preserving all other numbers.
This function is useful for handling potentially invalid numeric operations in a type-safe way, converting NaN results to undefined for easier handling with optional chaining or nullish coalescing.