npm

        npm install typeis
    

bower

        bower install typeis
    

examples

        
            var regexp = /test/gi
            var arr = ['test'];
            var now = new Date();
            var obj = {};

            console.log(regexp.typeis()); //RegExp;
            console.log(regexp.typeis('regexp')); //true;
            console.log(regexp.typeis('object')); //false;
            console.log(arr.typeis()); //Array;
            console.log(arr.typeis('array')); //true;
            console.log(now.typeis()); //Date;
            console.log(obj.typeis()); //Object;
        
    

Real World Usage

        
         function realWorld( options ){
            if(options.typeis('object')){
                //do something
            } else {
                //do another something
            }
        }