UNPKG

has-strict-mode

Version:

Does the current JS environment have strict mode? ES5+ should; but let's not assume.

14 lines (8 loc) 272 B
'use strict'; var test = require('tape'); var hasStrictMode = require('../'); test('has strict mode', function (t) { t.equal(typeof hasStrictMode, 'function', 'is a function'); t.equal(typeof hasStrictMode(), 'boolean', 'function returns a boolean'); t.end(); });