Skip to main content
Deno 2 is finally here 🎉️
Learn more

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.