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

x/rimbu/typical/mod.ts>Num.IsOdd

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

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