Skip to content
On this page

isOdd

Identifies if a number is odd.

Usage

ts
import { isOdd } from '@screaming/utils'

isOdd(1)
// true

isOdd(2)
// false
1
2
3
4
5
6
7

Type Definitions

ts
/**
 * @param n - The number.
 * @returns If the number is odd.
 */
export declare function isOdd(n: number): boolean
1
2
3
4
5