Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

TSKsmiley/isodd-or-even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

number - odd or even

At least 99.9% of the time, any number can be odd or even. This uncertainty can be eliminated with number-oddoreven. As it sports an incredibly fast, open-ended API, you can solve all even or odd related problems with only 1 line.


List of features

  • See if a number is odd or even
  • See if a number is odd or even
  • See if a number is odd or even

Download & Installation

$ npm i number-oddoreven

Code Demo

Importing (ready for production)

var isoddOrEven = require("number-oddoreven");

Importing (development version)

var isoddOrEven = require("number-oddoreven");

Example usage

var isoddOrEven = require("number-oddoreven");

if (isoddOrEven(3)) {
    console.log("The number is odd or even!");
}

Authors or Acknowledgments

  • Arnar Freyr Ástvaldsson
  • Anders Nyby Christensen
  • Frederik Hammer

License

This project is licensed under the MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •