84068904ee136e75857325030710655d.json
1.65 KB
{"ast":null,"code":"var eq = require('./eq');\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction assocIndexOf(array, key) {\n var length = array.length;\n\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n\n return -1;\n}\n\nmodule.exports = assocIndexOf;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/lodash/_assocIndexOf.js"],"names":["eq","require","assocIndexOf","array","key","length","module","exports"],"mappings":"AAAA,IAAIA,EAAE,GAAGC,OAAO,CAAC,MAAD,CAAhB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,YAAT,CAAsBC,KAAtB,EAA6BC,GAA7B,EAAkC;AAChC,MAAIC,MAAM,GAAGF,KAAK,CAACE,MAAnB;;AACA,SAAOA,MAAM,EAAb,EAAiB;AACf,QAAIL,EAAE,CAACG,KAAK,CAACE,MAAD,CAAL,CAAc,CAAd,CAAD,EAAmBD,GAAnB,CAAN,EAA+B;AAC7B,aAAOC,MAAP;AACD;AACF;;AACD,SAAO,CAAC,CAAR;AACD;;AAEDC,MAAM,CAACC,OAAP,GAAiBL,YAAjB","sourcesContent":["var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n"]},"metadata":{},"sourceType":"script"}