All Projects → jonschlinkert → longest

jonschlinkert / longest

Licence: MIT license
Get the length of the longest item in an array.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to longest

repeat-element
Create an array by repeating the given string n times.
Stars: ✭ 19 (-38.71%)
Mutual labels:  array, element, value
array-last
Return the last element in an array. Faster than `.slice`
Stars: ✭ 34 (+9.68%)
Mutual labels:  array, element
ElUploader-OSS-Solution
ElementUI - Upload 组件结合 OSS 的封装
Stars: ✭ 28 (-9.68%)
Mutual labels:  element
linqjs
Perform queries on collections in the manner of C#s System.Linq in JavaScript
Stars: ✭ 14 (-54.84%)
Mutual labels:  array
Public-Method-CardGame-NiuNiu
纸牌游戏牛牛的最优算法及Method
Stars: ✭ 21 (-32.26%)
Mutual labels:  array
java-notes
Complete Java Note for colleges in Nepal.
Stars: ✭ 30 (-3.23%)
Mutual labels:  array
FUPRAL
Fortran OO implementation of a generic container using an unlimited polymorphic class. Implementation of a resizable container array and a double linked list.
Stars: ✭ 18 (-41.94%)
Mutual labels:  array
Competitive Programming
Programming👨‍💻 Questions on BinarySearch💻, LeetCode💻, CodeChef💻, Codeforces💻,DSA 450
Stars: ✭ 188 (+506.45%)
Mutual labels:  array
BitLens
🔎 Have your bits and eat them too! A C++17 bit lens container for vector types.
Stars: ✭ 20 (-35.48%)
Mutual labels:  array
array-keyed-map
JS datastructure, like Map, but the keys are arrays
Stars: ✭ 29 (-6.45%)
Mutual labels:  array
TNSlider
A custom iOS slider that show current value on the thumb
Stars: ✭ 14 (-54.84%)
Mutual labels:  value
an-array-of-spanish-words
List of ~636,000 Spanish words
Stars: ✭ 31 (+0%)
Mutual labels:  array
vue-admin-better
🚀🚀🚀vue admin,vue3 admin,vue3.0 admin,vue后台管理,vue-admin,vue3.0-admin,admin,vue-admin,vue-element-admin,ant-design,vue-admin-beautiful-pro,vab admin pro,vab admin plus,vue admin plus,vue admin pro
Stars: ✭ 12,962 (+41712.9%)
Mutual labels:  element
go-streams
Stream Collections for Go. Inspired in Java 8 Streams and .NET Linq
Stars: ✭ 127 (+309.68%)
Mutual labels:  array
element-admin
A dead simple but powerful vue admin with Vue CLI 3 and ElementUI.
Stars: ✭ 37 (+19.35%)
Mutual labels:  element
pasvl
Array Validator (regular expressions for arrays, sort of)
Stars: ✭ 40 (+29.03%)
Mutual labels:  array
Problem-Solving
contains all coding interview practice problems, data structures and algorithms implementations. 👨‍💻👨‍💻💥 🚩
Stars: ✭ 14 (-54.84%)
Mutual labels:  array
php-collections
A collection library for php
Stars: ✭ 34 (+9.68%)
Mutual labels:  array
vue-ele-import
超简单、好用的 element-ui Excel 导入组件
Stars: ✭ 50 (+61.29%)
Mutual labels:  element
Data-Structures-Algorithms-Handbook
A series of important questions with solutions to crack the coding interview and ace it!
Stars: ✭ 30 (-3.23%)
Mutual labels:  array

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

Commits Contributor
25 jonschlinkert
4 shinnn
1 kevva
1 kemitchell

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].