array-prototype-last

array-prototype-last JS library homepage array-prototype-last JS library on GitHub array-prototype-last JS library on npm Download array-prototype-last JS library

Adds array.last property. Usage: ['a', 'b'].last //=> 'b'

Version 0.0.10 License MIT
array-prototype-last JS library homepage
array-prototype-last JS library on GitHub
array-prototype-last JS library on npm
Download array-prototype-last JS library
Keywords
arrayprototypefastfirstinitialjavascriptjslastutilutilityutils

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

Alexander Ishchenko

License

Copyright © 2017 Alexander Ishchenko Released under the MIT license.