UNPKG

modernizr

Version:

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

23 lines (22 loc) 674 B
/*! { "name": "ES6 Object", "property": "es6object", "notes": [{ "name": "unofficial ECMAScript 6 draft specification", "href": "https://web.archive.org/web/20180825202128/https://tc39.github.io/ecma262/" }], "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 Object per specification. */ define(['Modernizr'], function(Modernizr) { Modernizr.addTest('es6object', !!(Object.assign && Object.is && Object.setPrototypeOf)); });