UNPKG

modernizr

Version:

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

22 lines (19 loc) 482 B
/*! { "name": "ES5 Strict Mode", "property": "strictmode", "caniuse": "sctrict-mode", "notes": [{ "name": "ECMAScript 5.1 Language Specification", "href": "http://www.ecma-international.org/ecma-262/5.1/" }], "authors": ["@kangax"], "tags": ["es5"] } !*/ /* DOC Check if browser implements ECMAScript 5 Object strict mode. */ define(['Modernizr'], function( Modernizr ) { Modernizr.addTest('strictmode', (function(){ "use strict"; return !this; })()); });