Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/strnum.ts>ToNumber

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias ToNumber
import { type ToNumber } from "https://deno.land/x/rimbu@1.0.2/typical/strnum.ts";

Converts the given string-number to its corresponding number.

Examples

Example 1

StringNumToNumber<'13'> => 13
StringNumToNumber<'5234'> => 5234

Type Parameters

N extends string
definition: TupleLength<BuildTuple<N>>