Nodejs Array Head head()

Here you can find the source of head()

Method Source Code

Array.prototype.head = function() {
    return this[0];
}

Related

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