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.

esnext.set.find.js 870B

1234567891011121314151617181920
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var IS_PURE = require('../internals/is-pure');
  4. var anObject = require('../internals/an-object');
  5. var bind = require('../internals/function-bind-context');
  6. var getSetIterator = require('../internals/get-set-iterator');
  7. var iterate = require('../internals/iterate');
  8. // `Set.prototype.find` method
  9. // https://github.com/tc39/proposal-collection-methods
  10. $({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
  11. find: function find(callbackfn /* , thisArg */) {
  12. var set = anObject(this);
  13. var iterator = getSetIterator(set);
  14. var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
  15. return iterate(iterator, function (value, stop) {
  16. if (boundFunction(value, value, set)) return stop(value);
  17. }, { IS_ITERATOR: true, INTERRUPTED: true }).result;
  18. }
  19. });