react_comments-8.x-1.0-beta2/js/polyfills.js

js/polyfills.js
if (!String.prototype.startsWith) {
    String.prototype.startsWith = function(searchString, position) {
        position = position || 0;
        return this.indexOf(searchString, position) === position;
    };
}

if (!String.prototype.endsWith) {
    String.prototype.endsWith = function(suffix) {
        return this.indexOf(suffix, this.length - suffix.length) !== -1;
    };
}

if (!Array.prototype.includes) {
    Array.prototype.includes = function (searchString) {
        return this.indexOf(searchString) !== -1;
    }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc