File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/main/install/js/main/polyfill/find/js/find.js
Back
/** * Array.prototype.find polyfill */ ;(function() { 'use strict'; if (typeof Array.prototype.find !== 'function') { Object.defineProperty(Array.prototype, 'find', { enumerable: false, value: function(predicate, thisArg) { if (this === null) { throw new TypeError('Cannot read property \'find\' of null'); } if (typeof predicate !== 'function') { throw new TypeError(typeof predicate + ' is not a function'); } var arrLength = this.length; for (var i = 0; i < arrLength; i++) { if (predicate.call(thisArg, this[i], i, this)) { return this[i]; } } } }); } })();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings