1 var eq = require('./eq');
4 * Gets the index at which the `key` is found in `array` of key-value pairs.
7 * @param {Array} array The array to inspect.
8 * @param {*} key The key to search for.
9 * @returns {number} Returns the index of the matched value, else `-1`.
11 function assocIndexOf(array, key) {
12 var length = array.length;
14 if (eq(array[length][0], key)) {
21 module.exports = assocIndexOf;