get key and value of array via underscore each
<p>I would like to loop through an array and get the key and value of it. This is what I'm doing, but I don't get any output. What am I doing wrong?</p>

<pre><code>let regexes = [];
regexes['some.thing'] = /([^.]+)[.\s]*/g;

_.each(regexes, function(regex, key) {
    console.log(regex, key);
});
</code></pre>