Skip to main content
Module

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

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

Type that validates whether a given string-number is even. Checks that the last digit is even.

Type Parameters

N extends string
definition: U.Pred<Str.EndsWith<N,
| "0"
| "2"
| "4"
| "6"
| "8"
>>