Open
Description
What is the problem this feature would solve?
Like Number.parse this would be a nice addition.
What is the feature you are proposing to solve the problem?
const parseInt = (str: string, radix?: number): Option.Option<number> => {
const num = Number.parseInt(str, radix);
if (Number.isNaN(num)) {
return Option.none();
}
return Option.some(num);
};
Exists internally here:
What alternatives have you considered?
No response