njleonzhang / vue-data-tables

A simple, customizable and pageable table with SSR support, based on vue2 and element-ui
https://njleonzhang.github.io/vue-data-tables
MIT License
1.02k stars 221 forks source link

IE11 - Object doesn't support property or method 'includes' #207

Closed iparrabb closed 5 years ago

iparrabb commented 5 years ago

Hi, This error appears on IE11 || <, any idea? I have applied the includes polyfill without lucky.

if (!String.prototype.includes) {
    String.prototype.includes = function(search, start) {
        'use strict';
        if (typeof start !== 'number') {
            start = 0;
        }

        if (start + search.length > this.length) {
            return false;
        } else {
            return this.indexOf(search, start) !== -1;
        }
    };
}

Thanks.

close-issue-app[bot] commented 5 years ago

This issue is closed because it does not meet our issue template. Please read it.