2.0.1 • Published 7 years ago

longest v2.0.1

Weekly downloads
3,706,413
License
MIT
Repository
github
Last release
7 years ago

longest NPM version NPM monthly downloads NPM total downloads Linux Build Status

Get the longest item in an array.

Install

Install with npm:

$ npm install --save longest

Install

Install with bower

$ bower install longest --save

Usage

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

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

About

Contributing

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

Contributors

CommitsContributor
25jonschlinkert
4shinnn
1kevva
1kemitchell

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on May 26, 2017.

align-text@ilscc/mrm-presetarchetype-librarycz-conventional-simple-changelog@wyx962717593/trs-conventional-changelogcz-travelcar-commit-assistant@steven-torres/jsxrcz-conventional-changelog-manifestocz-conventional-changelog-brcz-jekyllcz-conventional-changelog-with-tasks@kiwiot/cz-custom-kiwikcthpb-plugin-socialjimi-web-changelogbroken-link-checker-timeoutcz-concentional-changelog-autounblock-block-save-variables@infinitebrahmanuniverse/nolb-lon@everything-registry/sub-chunk-2100cz-conventional-changelog-ptbrsynonyms-cliteadanteawd-web-changelogwii-changelogxj-conventional-changelogsansitech-cz-conventional-changelogright-pad-keysright-align-keysreact-websocketsredhotteastakingjosspeakup-teastakingjossteam-api-clisearch-input-reactsearch-list-reactsensenet-kfi-cz-conventional-changelogvcloudcam-playkit-js-hlsvite_vue3_ts_ssssdddddyyyyvue-dev-clonemiguelcostero-ng2-toastymedipass-conventional-changelogmi-iscrollmicoboteam-commitizenlimbo-conventional-changeloglierah-1lierah-2lierah-3lierah-4lierah-5lierah-6lierah-7lierah-8lierah-9lazy-git-clilongest-valuehello_world_founderhelp-widgetgogencygogency-test-2goblok-teastakingjosjeuxuijs-utils-jll2icons-vue-testinturn-conventional-changelogivanpantekmpesa-cookiempesa-cookie-jarkafirchain-tetrisguandata-commit-formathigithowler-ios-fixguilherme-custom-czgulp-unusedh5-templetejustifiedka-flow.jsjossgandos-teastakingjoshendo-clihendo-cli-luozheaold-conventional-changelogleap-cz-conventional-changelogggandos-teastakingjosgh-shipitgit-commit-guidegmantap-teastakingjosmrmmrm-preset-zardoylpad-alignlrbceshilyn-conventional-changelogmap-schemamathquillcustommathquillcustomlibmagento-conventional-changelogoutils-renprome-syncprompt-gridplaykit-js-hls-sondqpintar-teastakingjosprimeng-custom
2.0.1

7 years ago

2.0.0

8 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago