has-strict-mode
v1.0.1
Published
Does the current JS environment have strict mode? ES5+ should; but let's not assume.
Downloads
2,202
Maintainers
Readme
has-strict-mode
Does the current JS environment have strict mode? ES5+ should; but let's not assume.
Example
var hasStrictMode = require('has-strict-mode');
var assert = require('assert');
assert.equal(hasStrictMode(), true); // will be `false` in IE 6-8
Tests
Simply clone the repo, npm install
, and run npm test