modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
21 lines (20 loc) • 517 B
JavaScript
/*!
{
"name": "ES5 Strict Mode",
"property": "strictmode",
"caniuse": "use-strict",
"notes": [{
"name": "ECMAScript 5.1 Language Specification",
"href": "https://www.ecma-international.org/ecma-262/5.1/"
}],
"authors": ["@kangax"],
"tags": ["es5"],
"builderAliases": ["es5_strictmode"]
}
!*/
/* DOC
Check if browser implements ECMAScript 5 Object strict mode.
*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('strictmode', (function() {'use strict'; return !this; })());
});