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.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@1.0.2/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"
>>