has-strict-mode

    1.0.1 • Public • Published

    has-strict-mode Version Badge

    dependency status dev dependency status License Downloads

    npm badge

    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

    Install

    npm i has-strict-mode

    DownloadsWeekly Downloads

    16,214

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.07 kB

    Total Files

    10

    Last publish

    Collaborators

    • ljharb