is 0

JavaScript isser library. Node, AMD and browser support

is.js

JavaScript isser library. Node, AMD and browser support

#Install:

git clone [email protected]:bjarneo/is.git
//or
npm install isdotjs

##Documentation:

####is.Array();

is.Array(['a', 'b', 'c']);
// Returns true

####is.Object();

is.Object({ name: 'isJs' });
// Returns true

####is.Function();

is.Function(function() {});
// Returns true

####is.Undefined();

var test;
is.Undefined(test);
// Returns true

####is.String();

is.String('my string');
// Returns true

####is.Empty();

is.Empty({});
// Returns true

is.Empty([]);
// Returns true

is.Empty('');
// Returns true

####is.Number();

is.Number(123);
// Returns true

is.Number(1.1);
// Returns true

is.Number(-123);
// Returns true

is.Number(-1.2);
// Returns true

####is.Integer();

is.Integer(1);
// Returns true

is.Integer(1.0);
// Returns true

####is.Float();

is.Float(1.1);
// Returns true

is.Float(-1.1);
// Returns true

####is.Boolean();

is.Boolean(true);
// Returns true

is.Boolean(false);
// Returns true

####is.Null();

is.Null(null);
// Returns true

####is.Element();

var el = document.createElement('div');
is.Element(el);
// Returns true

####is.Date();

is.Date(new Date);
// Returns true

####is.RegExp();

is.RegExp(/a-z/);
// Returns true

####is.Global();

is.Global(window);
// Returns true

Related Repositories

is-thirteen

is-thirteen

Check if a number is equal to 13. ...

this-is-responsive

this-is-responsive

This Is Responsive ...

why-is-node-running

why-is-node-running

Node is running but you don't know why? why-is-node-running is here to help you. ...

reddit-is-fun

reddit-is-fun

OLD VERSION 1.3 of reddit is fun -- Android app to interact with reddit.com ...

is-up

is-up

Check whether a website is up or down ...


Top Contributors

bjarneo dmamills