Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/52b18534628e165da29cc45d1ec...

1 line
581 B
JSON

{"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":null,"metadata":{},"sourceType":"script"}