longest

Get the longest item in an array.

Install with npmarrow-up-right

npm i longest --save

Install with bowerarrow-up-right

bower install longest --save

Running tests

Install dev dependencies.

npm i -d && npm test

Usage

var longest = require('longest');
longest(['a', 'abcde', 'abc']);
//=> 'abcde'

longest(['a', 'abcde', 'abc']).length;
//=> 5

Running tests

Install dev dependencies.

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issuearrow-up-right

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert Released under the MIT license

This file was generated by verb-cliarrow-up-right on March 31, 2015.

Last updated

Was this helpful?