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

x/rimbu/typical/mod.ts>StrNum.ToNumber

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

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>>