3.3.0 • Published 5 years ago

is v3.3.0

Weekly downloads
1,528,387
License
MIT
Repository
github
Last release
5 years ago

is Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

The definitive JavaScript type testing library

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

Installation

As a node.js module

$ npm install is

As a component

$ component install enricomarino/is

API

general

  • 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, "undefined" is a reserved word

arguments

  • is.args (value)
  • is.arguments (value) - deprecated, because "arguments" is a reserved word
  • is.args.empty (value)

array

  • is.array (value)
  • is.array.empty (value)
  • is.arraylike (value)

boolean

  • is.bool (value)
  • is.boolean (value) - deprecated, because in ES3 browsers, "boolean" is a reserved word
  • 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

date

  • is.date (value)

element

  • is.element (value)

error

  • is.error (value)

function

  • is.fn (value)
  • is.function (value) - deprecated, because in ES3 browsers, "function" is a reserved word

number

  • is.number (value)
  • is.infinite (value)
  • is.decimal (value)
  • is.divisibleBy (value, n)
  • is.integer (value)
  • is.int (value) - deprecated, because in ES3 browsers, "int" is a reserved word
  • 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)

object

  • is.object (value)

regexp

  • is.regexp (value)

string

  • is.string (value)

encoded binary

  • is.base64 (value)
  • is.hex (value)

Symbols

  • is.symbol (value)

BigInts

  • is.bigint (value)

Contributors

et3-text-guardfilecloudserver@xviz_hik/schema@xviz_hk1/schemablindhapi-viperargument-types@everything-registry/sub-chunk-1932declare-type@develar/gitbookdeng-feathers-filemakerdatastore-simulatordeep-affects@dglmoore/imogendi-simplediff-objferryjsfeathers-filemakerfeathers-filemaker-bmangusexpressyfield-checkerfirebase-tools-zopflifirebase64fjpublishflightworker-eventsflightworker-mockfms-jsflightworker-serviceflightworker-utilsflightworker-workerform-batch-validatorformsforminatorfrontal.jsfront-end-vue-iview-componentdotresolverdraftmirrordraft-markupdistancesearchenv-managererdblocket3-recognize-imageeventbus-prodioeventemitter-bus@head.js/analytics.js-integration@google-cloud/spanner@google-cloud/bigquery@githon/markup-it@gitbook-ng/gitbookhxnls-deviureiureizzis-platform-nodeisodate-traversehz-api-private-adminhtml-element-watch@google-cloud/vision@google-cloud/trace-agent@google/cloud-trace@google-cloud/bigtable@google-cloud/common-grpc@google-cloud/datastore@honkit/markup-itiobroker.euhomedynamic-gclouddurga@clearbit-dcp/clearbit.js-coreegg-sql-manageregitbookeasybookeasytiny@exp-plus/alipay-sdk@esmodule/firestoregstore-apigstore-node@envuso/container@envato-marketplace-foundation/market-api-gateway-jsgod-redis-kitgoogle-cloud-storage-standalonegoogle_language_forced_english@egis/build-toolsgoogleapis-nodejs-cloudbuildgoogleapis-nodejs-functions@feedzai/gitbookhazel@fabric/docsh5-templeteheroku-loggergitbkgitkitgitbook-wnewgitbook-zhkjgithongcp-node-storagegcp-node-commongbookgcf-deploygcloudgcloud-compute-josephui-forkgcloud-datastore-schema
3.3.0

5 years ago

3.2.1

7 years ago

3.2.0

8 years ago

3.1.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.0

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.3.0

10 years ago

0.2.7

10 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.6

11 years ago

0.1.5

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.7

12 years ago