@me5on/is

0.2.0 • Public • Published

IS

it?

A small utility library for checking values

Examples

console.log(
  IS.fun($ => $),                 // true
  IS.fun(),                       // false

  IS.nan(NaN),                    // true

  IS.int(1),                      // true
  IS.integer(1),                  // true
  IS.num.int(1),                  // true

  IS.array([]),                   // true
  IS.ar([]),                      // true
  IS.ar.empty([]),                // true
  IS.array.empty(),               // false

  IS.empty(''),                   // true
  IS.empty([]),                   // true
  IS.empty({}),                   // true
  IS.empty(null),                 // true

  IS.primitive('yes'),            // true
  IS.primitive(new String('no')), // false
);

/@me5on/is/

    Package Sidebar

    Install

    npm i @me5on/is

    Weekly Downloads

    3

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    77.2 kB

    Total Files

    105

    Last publish

    Collaborators

    • azder