UNPKG

browsernizr

Version:

Modernizr wrapper for use with browserify

17 lines (13 loc) 445 B
/** * is returns a boolean if the typeof an obj is exactly type. * * @access private * @function is * @param {*} obj - A thing we want to check the type of * @param {string} type - A string to compare the typeof against * @returns {boolean} true if the typeof the first parameter is exactly the specified type, false otherwise */ function is(obj, type) { return typeof obj === type; } module.exports = is;