Sha256: 13c845c8f4a6fc5d417b427a3dfb47161e12baa7bae353362a7767e60e0708ac

Contents?: true

Size: 850 Bytes

Versions: 13

Compression:

Stored size: 850 Bytes

Contents

'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');

// `Set.prototype.some` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
  some: function some(callbackfn /* , thisArg */) {
    var set = anObject(this);
    var iterator = getSetIterator(set);
    var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
    return iterate(iterator, function (value) {
      if (boundFunction(value, value, set)) return iterate.stop();
    }, undefined, false, true).stopped;
  }
});

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/core-js/modules/esnext.set.some.js
tang-0.2.1 spec/tang_app/node_modules/core-js/modules/esnext.set.some.js
tang-0.2.0 spec/tang_app/node_modules/core-js/modules/esnext.set.some.js
tang-0.1.0 spec/tang_app/node_modules/core-js/modules/esnext.set.some.js
tang-0.0.9 spec/tang_app/node_modules/core-js/modules/esnext.set.some.js
enju_library-0.3.8 spec/dummy/node_modules/core-js/modules/esnext.set.some.js
condenser-0.3 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js
condenser-0.2 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js
condenser-0.1 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js
condenser-0.0.12 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js
condenser-0.0.11 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js
condenser-0.0.10 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js
condenser-0.0.9 lib/condenser/processors/node_modules/core-js-pure/modules/esnext.set.some.js