@codecontinent/even-odd
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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 😺

Readme

Keywords

none

Package Sidebar

Install

npm i @codecontinent/even-odd

Weekly Downloads

3

Version

1.0.9

License

ISC

Unpacked Size

3.79 kB

Total Files

10

Last publish

Collaborators

  • mahabubx7