1.0.9 • Published 11 months ago

@codecontinent/even-odd v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Even-Odd

Coverage Build Tests Publish

Introduction

This node package is a demo purpose project from Code Continent github organization. It can be install in nodejs project and can be used as cjs or mjs including typescript support.

This package will help you to find even or odd by the given input.

Getting started

Install:

$ npm install @cc/even-odd
// cjs

const { isOdd, isEven } = require('@cc/even-odd')
console.log(isOdd(7)) // returns true
console.log(isOdd(10)) // returns false
console.log(isEven(7)) // returns false
console.log(isEven(10)) // returns true

// esm

import { isOdd, isEven } from '@cc/even-odd'
console.log(isOdd(7)) // returns true
console.log(isOdd(10)) // returns false
console.log(isEven(7)) // returns false
console.log(isEven(10)) // returns true

The types definitions

isEven(num: number): boolean
isOdd(num: number): boolean

Thank you 😺

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago