项目原始demo,不改动
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # longest [![NPM version](https://badge.fury.io/js/longest.svg)](http://badge.fury.io/js/longest) [![Build Status](https://travis-ci.org/jonschlinkert/longest.svg)](https://travis-ci.org/jonschlinkert/longest)
  2. > Get the longest item in an array.
  3. ## Install with [npm](npmjs.org)
  4. ```bash
  5. npm i longest --save
  6. ```
  7. ### Install with [bower](https://github.com/bower/bower)
  8. ```bash
  9. bower install longest --save
  10. ```
  11. ## Running tests
  12. Install dev dependencies.
  13. ```bash
  14. npm i -d && npm test
  15. ```
  16. ## Usage
  17. ```js
  18. var longest = require('longest');
  19. longest(['a', 'abcde', 'abc']);
  20. //=> 'abcde'
  21. longest(['a', 'abcde', 'abc']).length;
  22. //=> 5
  23. ```
  24. ## Related projects
  25. * [longest-value](https://github.com/jonschlinkert/longest-value): Get the longest value for the given property from an array of objects. Useful for aligning values.
  26. * [right-align-values](https://github.com/jonschlinkert/right-align-values): Right align the values of a given property for each object in an array. Useful for creating text columns or tables.
  27. * [right-pad-values](https://github.com/jonschlinkert/right-pad-values): Right pad the values of a given property for each object in an array. Useful for creating text columns or tables.
  28. * [repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string.
  29. * [pad-right](https://github.com/jonschlinkert/pad-right): Right pad a string with zeros or a specified string. Fastest implementation.
  30. * [pad-left](https://github.com/jonschlinkert/pad-left): Left pad a string with zeros or a specified string. Fastest implementation.
  31. ## Running tests
  32. Install dev dependencies.
  33. ```bash
  34. npm i -d && npm test
  35. ```
  36. ## Contributing
  37. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/longest/issues)
  38. ## Author
  39. **Jon Schlinkert**
  40. + [github/jonschlinkert](https://github.com/jonschlinkert)
  41. + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
  42. ## License
  43. Copyright (c) 2015 Jon Schlinkert
  44. Released under the MIT license
  45. ***
  46. _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 31, 2015._