isEven
Identifies if a number is even.
Usage
ts
import { isEven } from '@screaming/utils'
isEven(1)
// false
isEven(2)
// true
1
2
3
4
5
6
7
2
3
4
5
6
7
Type Definitions
ts
/**
* @param n - The number.
* @returns If the number is even.
*/
export declare function isEven(n: number): boolean
1
2
3
4
5
2
3
4
5