| Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/main/polyfill/includes/js/ |
| Current File : /var/www/element/data/www/revenuestory.ru/bitrix/js/main/polyfill/includes/js/includes.js |
/**
* Array.prototype.includes polyfill
*/
(function() {
'use strict';
if (typeof Array.prototype.includes !== 'function')
{
Object.defineProperty(Array.prototype, 'includes', {
enumerable: false,
value: function(element)
{
var result = this.find(function(currentElement) {
return currentElement === element;
});
return result === element;
},
});
}
})();