1 line
4.1 KiB
JSON
1 line
4.1 KiB
JSON
{"ast":null,"code":"var toIndexedObject = require('../internals/to-indexed-object');\n\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\nvar lengthOfArrayLike = require('../internals/length-of-array-like'); // `Array.prototype.{ indexOf, includes }` methods implementation\n\n\nvar createMethod = function createMethod(IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value; // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++]; // eslint-disable-next-line no-self-compare -- NaN check\n\n if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not\n } else for (; length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n }\n return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};","map":{"version":3,"names":["toIndexedObject","require","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","length","index","value","module","exports","includes","indexOf"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/core-js/internals/array-includes.js"],"sourcesContent":["var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n"],"mappings":"AAAA,IAAIA,eAAe,GAAGC,OAAO,CAAC,gCAAD,CAA7B;;AACA,IAAIC,eAAe,GAAGD,OAAO,CAAC,gCAAD,CAA7B;;AACA,IAAIE,iBAAiB,GAAGF,OAAO,CAAC,mCAAD,CAA/B,C,CAEA;;;AACA,IAAIG,YAAY,GAAG,SAAfA,YAAe,CAAUC,WAAV,EAAuB;EACxC,OAAO,UAAUC,KAAV,EAAiBC,EAAjB,EAAqBC,SAArB,EAAgC;IACrC,IAAIC,CAAC,GAAGT,eAAe,CAACM,KAAD,CAAvB;IACA,IAAII,MAAM,GAAGP,iBAAiB,CAACM,CAAD,CAA9B;IACA,IAAIE,KAAK,GAAGT,eAAe,CAACM,SAAD,EAAYE,MAAZ,CAA3B;IACA,IAAIE,KAAJ,CAJqC,CAKrC;IACA;;IACA,IAAIP,WAAW,IAAIE,EAAE,IAAIA,EAAzB,EAA6B,OAAOG,MAAM,GAAGC,KAAhB,EAAuB;MAClDC,KAAK,GAAGH,CAAC,CAACE,KAAK,EAAN,CAAT,CADkD,CAElD;;MACA,IAAIC,KAAK,IAAIA,KAAb,EAAoB,OAAO,IAAP,CAH8B,CAIpD;IACC,CALD,MAKO,OAAMF,MAAM,GAAGC,KAAf,EAAsBA,KAAK,EAA3B,EAA+B;MACpC,IAAI,CAACN,WAAW,IAAIM,KAAK,I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