Sha256: 75b8c0d175f19a0d604e2e749928a33758c2df3ebf990ad9590f9df6b48aeb46
Contents?: true
Size: 573 Bytes
Versions: 29
Compression:
Stored size: 573 Bytes
Contents
var fails = require('../internals/fails'); var replacement = /#|\.prototype\./; var isForced = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == 'function' ? fails(detection) : !!detection; }; var normalize = isForced.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced.data = {}; var NATIVE = isForced.NATIVE = 'N'; var POLYFILL = isForced.POLYFILL = 'P'; module.exports = isForced;
Version data entries
29 entries across 28 versions & 9 rubygems