Sha256: 0f3c469a78739a9f2414c6221d1fe1ad99a6ea4aa2feb7a6571e8c440d27118b
Contents?: true
Size: 540 Bytes
Versions: 46
Compression:
Stored size: 540 Bytes
Contents
"use strict"; var callable = require("../../../object/valid-callable") , ensureValue = require("../../../object/valid-value") , some = Array.prototype.some , apply = Function.prototype.apply; module.exports = function (predicate /*, thisArg*/) { var k, self; self = Object(ensureValue(this)); callable(predicate); return some.call( self, function (value, index) { if (apply.call(predicate, this, arguments)) { k = index; return true; } return false; }, arguments[1] ) ? k : -1; };
Version data entries
46 entries across 46 versions & 3 rubygems