is

the definitive JavaScript type testing library

is

The definitive JavaScript type testing library

To be or not to be? This is the library!

As a node.js module

$ npm install is

As a component

$ component install enricomarino/is
  • is.a (value, type) or is.type (value, type)
  • is.defined (value)
  • is.empty (value)
  • is.equal (value, other)
  • is.hosted (value, host)
  • is.instance (value, constructor)
  • is.instanceof (value, constructor) - deprecated, because in ES3 browsers, "instanceof" is a reserved word
  • is.nil (value)
  • is.null (value) - deprecated, because in ES3 browsers, "null" is a reserved word
  • is.undef (value)
  • is.undefined (value) - deprecated, because in ES3 browsers, "" is a reserved word
  • is.args (value)
  • is.arguments (value) - deprecated, because "arguments" is a reserved word
  • is.args.empty (value)
  • is.array (value)
  • is.array.empty (value)
  • is.arraylike (value)
  • is.boolean (value)
  • is.false (value) - deprecated, because in ES3 browsers, "false" is a reserved word
  • is.true (value) - deprecated, because in ES3 browsers, "true" is a reserved word
  • is.date (value)
  • is.element (value)
  • is.error (value)
  • is.fn (value)
  • is.function (value) - deprecated, because in ES3 browsers, "function" is a reserved word
  • is.number (value)
  • is.infinite (value)
  • is.decimal (value)
  • is.divisibleBy (value, n)
  • is.int (value)
  • is.maximum (value, others)
  • is.minimum (value, others)
  • is.nan (value)
  • is.even (value)
  • is.odd (value)
  • is.ge (value, other)
  • is.gt (value, other)
  • is.le (value, other)
  • is.lt (value, other)
  • is.within (value, start, finish)
  • is.object (value)
  • is.regexp (value)
  • is.string (value)
  • is.base64 (value)
  • is.hex (value)
  • is.symbol (value)