mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
1 line
2.0 KiB
JSON
1 line
2.0 KiB
JSON
|
{"ast":null,"code":"/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n\n return result;\n}\n\nexport default arrayFilter;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_arrayFilter.js"],"names":["arrayFilter","array","predicate","index","length","resIndex","result","value"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,SAA5B,EAAuC;AACrC,MAAIC,KAAK,GAAG,CAAC,CAAb;AAAA,MACIC,MAAM,GAAGH,KAAK,IAAI,IAAT,GAAgB,CAAhB,GAAoBA,KAAK,CAACG,MADvC;AAAA,MAEIC,QAAQ,GAAG,CAFf;AAAA,MAGIC,MAAM,GAAG,EAHb;;AAKA,SAAO,EAAEH,KAAF,GAAUC,MAAjB,EAAyB;AACvB,QAAIG,KAAK,GAAGN,KAAK,CAACE,KAAD,CAAjB;;AACA,QAAID,SAAS,CAACK,KAAD,EAAQJ,KAAR,EAAeF,KAAf,CAAb,EAAoC;AAClCK,MAAAA,MAAM,CAACD,QAAQ,EAAT,CAAN,GAAqBE,KAArB;AACD;AACF;;AACD,SAAOD,MAAP;AACD;;AAED,eAAeN,WAAf","sourcesContent":["/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n"]},"metadata":{},"sourceType":"module"}
|