Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
array-find
/
Filename :
find.js
back
Copy
'use strict'; function find(array, predicate, context) { if (typeof Array.prototype.find === 'function') { return array.find(predicate, context); } context = context || this; var length = array.length; var i; if (typeof predicate !== 'function') { throw new TypeError(predicate + ' is not a function'); } for (i = 0; i < length; i++) { if (predicate.call(context, array[i], i, array)) { return array[i]; } } } module.exports = find;