Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

46 lines (26 loc) · 1.05 KB

array-prototype-last NPM version Build Status

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

Alex Ishenko

License

Copyright © 2017 Alex Ishenko Released under the MIT license.