How to remove object by key in Javascript array?
<p>I have an array like this one:</p>

<pre><code>[{
  '0': [7]
}, {
  references: [0]
}, {
  '1': [8]
}, {
  references: [9]
}, {
  '2': [20]
}, {
  references: [50]
}]
</code></pre>

<p>I want to remove all objects containing the <code>reference</code> key. Any suggestions?</p>