Nodejs Utililty Methods Array Head

List of utility methods to do Array Head

Description

The list of methods to do Array Head are organized into topic(s).

Method

head()
Array.prototype.head = function () {
    if (this.length == 0) {
        return null;
    return this[0];
head()
Array.prototype.head = function() {
    return this[0];