Skip to content

thomaslein/util.identify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of Object identification functions.

Usage

var id = require('util.identify');

id.isArray([]); // => true
id.isObject({}); // => true
id.isString(''); // => true
id.isNumber(9); // => true
id.isFunction(function(){}); // => true
id.isElement(document.getElementById('myElement')); // => true
id.isBoolean(true); // => true