Skip to content

qialex/array-prototype-last

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published