longest

Get the longest item in an array.

longest

Get the longest item in an array.

Install with npm

npm i longest --save

Install with bower

bower install longest --save
npm test
var longest = require('longest');
longest(['a', 'abcde', 'abc']);
//=> 'abcde' 
 
longest(['a', 'abcde', 'abc']).length;
//=> 5 

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Jon Schlinkert

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


This file was generated by verb on February 24, 2015.