Skip to content

Get the length of the longest item in an array.

License

Notifications You must be signed in to change notification settings

justjavac/deno_longest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno_longest

tag Build Status license

Get the length of the longest item in an array.

base on jonschlinkert/longest

Usage

import longest from "https://deno.land/x/longest/mod.ts";

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

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

License

deno_longest is released under the MIT License. See the bundled LICENSE file for details.