SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to preserve the readibility you could always add a first function to the Array.protoype:
Array.protoype
Array.prototype.first = function () { return this[0]; };
A then you could easily retrieve the first element:
[1, 2, 3].first(); > 1