Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

10xly-archive/unknown-odd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unknown-odd

Every is-(...)-odd functions and is-(...)-even functions in one package.

Installation

Install with your favorite package manager.

NPM:

$ npm install --save unknown-odd

Yarn:

$ yarn add unknown-odd

PNPM:

$ pnpm add unknown-odd

Usage

All functions are just exported after a require.

const { isOdd, isIsOdd, isIsEven, isIsIsEven } = require('unknown-odd')
const assert = require('assert-fn')

assert(isOdd(1))
assert(!isOdd(4))
assert(isIsOdd(isOdd))
assert(isIsIsEven(isIsEven))

Tests

This library is 100% tested.

License

MIT Licensed