Node.js examples for Array:Array Operation
Contains in Array
Array.prototype.contains = function(needle) { if (Array.prototype.indexOf) return this.indexOf(needle) != -1; for (var i in this) if (this[i] == needle) return true; return false; }