https://github.com/justjavac/deno_longest
Get the length of the longest item in an array.
https://github.com/justjavac/deno_longest
deno deno-longest length longest-word text
Last synced: about 2 months ago
JSON representation
Get the length of the longest item in an array.
- Host: GitHub
- URL: https://github.com/justjavac/deno_longest
- Owner: justjavac
- License: mit
- Created: 2020-08-20T14:20:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T15:46:02.000Z (almost 6 years ago)
- Last Synced: 2025-10-25T15:42:55.328Z (8 months ago)
- Topics: deno, deno-longest, length, longest-word, text
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_longest
[](https://github.com/justjavac/deno_longest/releases)
[](https://github.com/justjavac/deno_longest/actions)
[](https://github.com/justjavac/deno_longest/blob/master/LICENSE)
Get the length of the longest item in an array.
> base on [jonschlinkert/longest](https://github.com/jonschlinkert/longest)
## Usage
```ts
import longest from "https://deno.land/x/longest/mod.ts";
longest(['a', 'abcde', 'abc']);
//=> 'abcde'
longest(['a', 'abcde', 'abc']).length;
//=> 5
```
## License
[deno_longest](https://github.com/justjavac/deno_longest) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.