title: JavaScript alternative to associative array
body: <p>I have no experience in javaScript, but i have to write a simple server app. What i need is to describe a connected client by: </p>
  
  <pre><code>1. name
  2. socket
  3. connectedSocket
  </code></pre>
  
  <p>The way that by:</p>
  
  <pre><code>1. just having information about socket, i can get its associated name and connectedSocket
  2. just having a name i can get its socket.
  </code></pre>
  
  <p>I want to avoid using "find" functions to get a certain client by searching for specified name or other socket since it's a server app. I thought about using associative array since i can just get value by giving a key, but i heard in javascript it's just an object and </p>
  
  <pre><code>delete myArray["key"];
  </code></pre>
  
  <p>will not reduce array size. So, in summary, i need to represent that data the way that i can avoid using "find" functions and being able to remove and add a lot of connections in a safe manner.</p>