array-prototype-last

js
Adds array.last property. Usage: ['a', 'b'].last //=> 'b'
Version 0.0.10 License MIT
Keywords
arrayprototypefastfirstinitialjavascriptjslastutilutilityutils
array-prototype-last

Adds array.last property. Usage: ['a', 'b'].last //=> 'b'
Install
Install with npm:
$ npm install array-prototype-last --save
Usage
require('array-prototype-last');
[1, 2, 3].last; //=> 3
[].last; //=> undefined
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Alexander Ishchenko
License
Copyright © 2017 Alexander Ishchenko Released under the MIT license.