{"version":3,"sources":["node_modules\\array-find-index\\index.js"],"names":["module","exports","arr","predicate","ctx","Array","prototype","findIndex","TypeError","list","Object","len","length","i","call"],"mappings":"AAAA;AACAA,OAAOC,OAAP,CAAiB,SAAUC,GAAV,CAAeC,SAAf,CAA0BC,GAA1B,CAA+B;AAC/C,GAAI,MAAOC,OAAMC,SAAN,CAAgBC,SAAvB,GAAqC,UAAzC,CAAqD;AACpD,MAAOL,KAAIK,SAAJ,CAAcJ,SAAd,CAAyBC,GAAzB,CAAP;AACA;;AAED,GAAI,MAAOD,UAAP,GAAqB,UAAzB,CAAqC;AACpC,KAAM,IAAIK,UAAJ,CAAc,8BAAd,CAAN;AACA;;AAED,GAAIC,MAAOC,OAAOR,GAAP,CAAX;AACA,GAAIS,KAAMF,KAAKG,MAAf;;AAEA,GAAID,MAAQ,CAAZ,CAAe;AACd,MAAO,CAAC,CAAR;AACA;;AAED,IAAK,GAAIE,GAAI,CAAb,CAAgBA,EAAIF,GAApB,CAAyBE,GAAzB,CAA8B;AAC7B,GAAIV,UAAUW,IAAV,CAAeV,GAAf,CAAoBK,KAAKI,CAAL,CAApB,CAA6BA,CAA7B,CAAgCJ,IAAhC,CAAJ,CAA2C;AAC1C,MAAOI,EAAP;AACA;AACD;;AAED,MAAO,CAAC,CAAR;AACA,CAvBD","file":"index.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["'use strict';\nmodule.exports = function (arr, predicate, ctx) {\n\tif (typeof Array.prototype.findIndex === 'function') {\n\t\treturn arr.findIndex(predicate, ctx);\n\t}\n\n\tif (typeof predicate !== 'function') {\n\t\tthrow new TypeError('predicate must be a function');\n\t}\n\n\tvar list = Object(arr);\n\tvar len = list.length;\n\n\tif (len === 0) {\n\t\treturn -1;\n\t}\n\n\tfor (var i = 0; i < len; i++) {\n\t\tif (predicate.call(ctx, list[i], i, list)) {\n\t\t\treturn i;\n\t\t}\n\t}\n\n\treturn -1;\n};\n"]}