PageSourceSearch

https://artehistoria.com/core/misc/polyfills/array.includes.js?v=9.5.11

js artehistoria.com collected 2026-10-02 02:12:16 UTC 890 bytes, 37 lines download raw bytes

1/**
2* DO NOT EDIT THIS FILE.
3* See the following change record for more information,
4* https://www.drupal.org/node/2815083
5* @preserve
6**/
7if (!Array.prototype.includes) {
8  Array.prototype.includes = function (searchElement) {
9    if (this == null) {
10      throw new TypeError('Array.prototype.includes called on null or undefined');
11    }
12    var O = Object(this);
13    var len = parseInt(O.length, 10) || 0;
14    if (len === 0) {
15      return false;
16    }
17    var n = parseInt(arguments[1], 10) || 0;
18    var k;
19    if (n >= 0) {
20      k = n;
21    } else {
22      k = len + n;
23      if (k < 0) {
24        k = 0;
25      }
26    }
27    var currentElement;
28    while (k < len) {
29      currentElement = O[k];
30      if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
31        return true;
32      }
33      k += 1;
34    }
35    return false;
36  };
37}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.