UNPKG

modernizr

Version:

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

29 lines (28 loc) 866 B
/*! { "name": "ES6 Number", "property": "es6number", "notes": [{ "name": "unofficial ECMAScript 6 draft specification", "href": "https://people.mozilla.org/~jorendorff/es6-draft.html" }], "polyfills": ["es6shim"], "authors": ["Ron Waldon (@jokeyrhyme)"], "warnings": ["ECMAScript 6 is still a only a draft, so this detect may not match the final specification or implementations."], "tags": ["es6"] } !*/ /* DOC Check if browser implements ECMAScript 6 Number per specification. */ define(['Modernizr'], function(Modernizr) { Modernizr.addTest('es6number', !!(Number.isFinite && Number.isInteger && Number.isSafeInteger && Number.isNaN && Number.parseInt && Number.parseFloat && Number.isInteger(Number.MAX_SAFE_INTEGER) && Number.isInteger(Number.MIN_SAFE_INTEGER) && Number.isFinite(Number.EPSILON))); });