UNPKG

493 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var $some = require('../internals/array-iteration').some;
4var sloppyArrayMethod = require('../internals/sloppy-array-method');
5
6// `Array.prototype.some` method
7// https://tc39.github.io/ecma262/#sec-array.prototype.some
8$({ target: 'Array', proto: true, forced: sloppyArrayMethod('some') }, {
9 some: function some(callbackfn /* , thisArg */) {
10 return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
11 }
12});