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