90e905c94a633adba4d030fae826fb20.json
2.1 KB
{"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\nmodule.exports = arrayFilter;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/lodash/_arrayFilter.js"],"names":["arrayFilter","array","predicate","index","length","resIndex","result","value","module","exports"],"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;;AAEDE,MAAM,CAACC,OAAP,GAAiBT,WAAjB","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\nmodule.exports = arrayFilter;\n"]},"metadata":{},"sourceType":"script"}