JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3789735
  • Score
    100M100P100Q238484F
  • License

Get the longest item in an array.

Package Exports

  • longest

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (longest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

longest NPM version

Get the longest item in an array.

Install with npm

npm i longest --save

Install with bower

bower install longest --save

Run tests

npm test

Usage

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

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

Contributing

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

Author

Jon Schlinkert

License

Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb on February 24, 2015.