msngr.js
function (type, item, hard) {
        if (hard) {
            return harderTypes[type](getType(item), item);
        }
        return (getType(item) === simpleTypes[type]);
    }
function (type, item, hard) {
        if (hard) {
            return harderTypes[type](getType(item), item);
        }
        return (getType(item) === simpleTypes[type]);
    }
function ( type , item , hard ) { if ( hard ) { return harderTypes [ type ] ( getType ( item ) , item ) ; } return ( getType ( item ) === simpleTypes [ type ] ) ; }
Check a type against an input
Check a type against an input