title: Multi-dimensional array - splice the full array based on indexOf value
body: <p>So I currently have a multi-dimensional array, am am trying to splice a value with the index of it is a channel name which has just been removed, then removed that value where that value is.</p>
  
  <p>But its not doing that, its always splicing the very last value, I have debugged to ensure the correct value is being passed that I want to remove but.....still to no avail, I don't have much experience with MD arrays but this is proving to be a pain thus far.</p>
  
  <p>I have attempted to fiddle with the index but just always ends up the same or just the opposite result.</p>
  
  <p>Here is the code as it stands right now for the splice function:</p>
  
  <pre><code>    function stasisEnd(event, channel) {
      console.log(util.format(
          'Channel %s just left our application', channel.name));
      console.log(channel.name);
  
      //This is where the channels are removed from the array once they leave or are kicked from the channel.
      var index = channelArr.indexOf(channel.name);
      channelArr.splice(index, 1);
      console.log(channelArr);
    }
  </code></pre>
  
  <p>This is what the array looks like with 3 arrays inside it:</p>
  
  <pre><code>[["1447667845.0","SIP/488-00000000"],["1447667858.4","SIP/477-00000002"],["1447667847.1","SIP/487-00000001"]]
  </code></pre>
  
  <p>And so far it always removes the last channel where I want to remove an array if it has the index off the channel.name value being removed so aka:</p>
  
  <ol>
  <li>SIP/477-00000002 has been removed.</li>
  <li>Remove the 2nd array based on that value.</li>
  <li>Can continue to remove arrays based off the channel.name.</li>
  </ol>
  
  <p>Hope you guys can shed a little light on this. </p>
  
  <p>EDIT: I am aware this works on a single normal array.</p>