You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Needed for Filterizr support on IE11// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includesif(!String.prototype.includes){String.prototype.includes=function(search,start){'use strict';if(typeofstart!=='number'){start=0;}if(start+search.length>this.length){returnfalse;}else{returnthis.indexOf(search,start)!==-1;}};}// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes// https://tc39.github.io/ecma262/#sec-array.prototype.includesif(!Array.prototype.includes){Object.defineProperty(Array.prototype,'includes',{value: function(searchElement,fromIndex){if(this==null){thrownewTypeError('"this" is null or not defined');}// 1. Let O be ? ToObject(this value).varo=Object(this);// 2. Let len be ? ToLength(? Get(O, "length")).varlen=o.length>>>0;// 3. If len is 0, return false.if(len===0){returnfalse;}// 4. Let n be ? ToInteger(fromIndex).// (If fromIndex is undefined, this step produces the value 0.)varn=fromIndex|0;// 5. If n ≥ 0, then// a. Let k be n.// 6. Else n < 0,// a. Let k be len + n.// b. If k < 0, let k be 0.vark=Math.max(n>=0 ? n : len-Math.abs(n),0);functionsameValueZero(x,y){returnx===y||(typeofx==='number'&&typeofy==='number'&&isNaN(x)&&isNaN(y));}// 7. Repeat, while k < lenwhile(k<len){// a. Let elementK be the result of ? Get(O, ! ToString(k)).// b. If SameValueZero(searchElement, elementK) is true, return true.if(sameValueZero(o[k],searchElement)){returntrue;}// c. Increase k by 1. k++;}// 8. Return falsereturnfalse;}});}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: