Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is-forced.js 573B

123456789101112131415161718192021
  1. var fails = require('../internals/fails');
  2. var replacement = /#|\.prototype\./;
  3. var isForced = function (feature, detection) {
  4. var value = data[normalize(feature)];
  5. return value == POLYFILL ? true
  6. : value == NATIVE ? false
  7. : typeof detection == 'function' ? fails(detection)
  8. : !!detection;
  9. };
  10. var normalize = isForced.normalize = function (string) {
  11. return String(string).replace(replacement, '.').toLowerCase();
  12. };
  13. var data = isForced.data = {};
  14. var NATIVE = isForced.NATIVE = 'N';
  15. var POLYFILL = isForced.POLYFILL = 'P';
  16. module.exports = isForced;