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

x/rimbu/typical/num.ts>IsOdd

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

Returns true if the given natural number is odd, or never otherwise.

Examples

Example 1

Odd<4> => false
Odd<11> => true
Odd<-3> => never

Type Parameters

N extends number
definition: StrNum.IsOdd<StrNum.FromNumber<N>>