Node.js examples for Array:Add Element
Add method to Array to check if it contains a value
Array.prototype.contains = function (value){ return this.indexOf(value)>=0 };