title: Javascript find and delete by value in multidimensional object/array
body: <p>What I basically need is to find item in multidimensional array and delete only it. The problem is that there are more then one same object keys in this.</p>
  
  <p>array example (copied from console):</p>
  
  <pre><code>gameDetails.betsArray = [{
      '1.02': {
          userDetails: {
              socketID: '/#32EZlk6tW03tNgnOAAAA',
              userID: 1
          },
          trigger: 110,
          parseD: 1.02
      }
  }, {
      '1.02': {
          userDetails: {
              socketID: '/#32EZlk6tW03tNgnOAAAA',
              userID: 5
          },
          trigger: 881,
          parseD: 1.02
      }
  }]
  </code></pre>
  
  <p><strong>how array is being made</strong></p>
  
  <pre><code>gameDetails.betsArray[validator.toFloat(betDetails.breakAt)] = {
      userDetails: {
          socketID: socketID,
          userID: connectedUsers[socketID].id
      },
      betAmount: validator.toInt(betDetails.amount),
      breakAt: validator.toFloat(betDetails.breakAt)
  };
  </code></pre>
  
  <p>and I want to find object by <code>key</code> which is 1.02 and <code>object.userDetails.userID = 5</code></p>
  
  <p>what I have tried and it didn't worked for me:</p>
  
  <pre><code>gameDetails.betsArray.map(function (details, key) {
      if (details.userDetails.userID == connectedUsers[socketID].id &amp;&amp;
          details.trigger == validator.toFloat(betDetails.trigger)) {
          delete gameDetails.betsArray[key];
      }
  });
  </code></pre>
  
  <p>how is it possible to make? In the final step I want to remove data from the array of found object.</p>