3479afe677e70f9247c494baeb32a48b.json
1.84 KB
{"ast":null,"code":"Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;function flattenArray(array){function flattenDown(array,result){for(var i=0;i<array.length;i++){var value=array[i];if(Array.isArray(value)){flattenDown(value,result);}else if(value!=null&&value!==false){result.push(value);}}return result;}return flattenDown(array,[]);}var _default=flattenArray;exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/modules/flattenArray/index.js"],"names":["flattenArray","array","flattenDown","result","i","length","value","Array","isArray","push"],"mappings":"gFAQA,QAASA,CAAAA,YAAT,CAAsBC,KAAtB,CAA6B,CAC3B,QAASC,CAAAA,WAAT,CAAqBD,KAArB,CAA4BE,MAA5B,CAAoC,CAClC,IAAK,GAAIC,CAAAA,CAAC,CAAG,CAAb,CAAgBA,CAAC,CAAGH,KAAK,CAACI,MAA1B,CAAkCD,CAAC,EAAnC,CAAuC,CACrC,GAAIE,CAAAA,KAAK,CAAGL,KAAK,CAACG,CAAD,CAAjB,CAEA,GAAIG,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,CAA0B,CACxBJ,WAAW,CAACI,KAAD,CAAQH,MAAR,CAAX,CACD,CAFD,IAEO,IAAIG,KAAK,EAAI,IAAT,EAAiBA,KAAK,GAAK,KAA/B,CAAsC,CAC3CH,MAAM,CAACM,IAAP,CAAYH,KAAZ,EACD,CACF,CAED,MAAOH,CAAAA,MAAP,CACD,CAED,MAAOD,CAAAA,WAAW,CAACD,KAAD,CAAQ,EAAR,CAAlB,CACD,C,aAEcD,Y","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction flattenArray(array) {\n function flattenDown(array, result) {\n for (var i = 0; i < array.length; i++) {\n var value = array[i];\n\n if (Array.isArray(value)) {\n flattenDown(value, result);\n } else if (value != null && value !== false) {\n result.push(value);\n }\n }\n\n return result;\n }\n\n return flattenDown(array, []);\n}\n\nexport default flattenArray;"]},"metadata":{},"sourceType":"script"}