UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

17 lines (15 loc) 457 B
define(function() { /** * 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; } return is; });