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: 6 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T15:46:02.000Z (about 5 years ago)
- Last Synced: 2025-03-08T04:37:09.183Z (7 months ago)
- Topics: deno, deno-longest, length, longest-word, text
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- 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.