Node.js examples for Array:First Element
Add method to array to get first element
Array.prototype.first = function() { return this[0]; }