title: How to search in an array in Node.js in a non-blocking way?
body: <p>I have an array which is:</p>
  
  <pre><code>[ 4ff023908ed2842c1265d9e4, 4ff0d75c8ed2842c1266099b ]
  </code></pre>
  
  <p>And I have to find if the following, is inside that array</p>
  
  <pre><code>4ff0d75c8ed2842c1266099b
  </code></pre>
  
  <p>Here is what I wrote:</p>
  
  <pre><code>Array.prototype.contains = function(k) {
    for(p in this)
       if(this[p] === k)
          return true;
    return false;
  }
  </code></pre>
  
  <p>Apparently, it doesn't work properly, or better sometimes it works, but it looks to me blocking. Is there anyone that can check that one?</p>
  
  <p>many thanks</p>