@toshimichi/iseven
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

iseven

Checks if the number is even.

(Note: this is a joke package and should not be used in production. This package exists for the sole purpose of demonstrating how to publish a package to npm.)

Install

npm install iseven

Usage

import isEven from "iseven";

isEven(2); // true
isEven(3); // false
isEven("2"); // true
isEven("3"); // false
isEven(() => "2"); // true
isEven(() => "3"); // false
isEven(async () => "2"); // true
isEven(async () => "3"); // false

/@toshimichi/iseven/

    Package Sidebar

    Install

    npm i @toshimichi/iseven

    Weekly Downloads

    0

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    4.07 kB

    Total Files

    8

    Last publish

    Collaborators

    • toshimichi