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.

es.string.includes.js 660B

1234567891011121314
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var notARegExp = require('../internals/not-a-regexp');
  4. var requireObjectCoercible = require('../internals/require-object-coercible');
  5. var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
  6. // `String.prototype.includes` method
  7. // https://tc39.es/ecma262/#sec-string.prototype.includes
  8. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  9. includes: function includes(searchString /* , position = 0 */) {
  10. return !!~String(requireObjectCoercible(this))
  11. .indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
  12. }
  13. });