isOdd

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is

Check if a number is odd or not

Params

  1. value*-Number

    The value to check

Return

  1. -Boolean

    true if odd, false if not

Example

import { isOdd } from '@blackbyte/sugar/is'
isOdd(1) // true
isOdd(2) // false

Todo

  • testsnormal