Sha256: ff22958dcb7cbe1e88851aa876a18a2fc8dba3b7e4f1a8a89f536dfe9fc247e1

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

// last element in array
if (!Array.prototype.last){
  Array.prototype.last = function(){
    return this[this.length - 1];
  };
};

// first element in array
if (!Array.prototype.first){
  Array.prototype.first = function(){
    return this[0];
  };
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/assets/javascripts/statixite/array-helpers.js
statixite-1.0.1 app/assets/javascripts/statixite/array-helpers.js
statixite-1.0.0 app/assets/javascripts/statixite/array-helpers.js