in-array

Array checker

Returns true if a value exists in an array without searching the entire array or handling null values

Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.

GitHub

16 stars
3 watching
1 forks
Language: JavaScript
last commit: over 10 years ago
Linked from 1 awesome list

arrayjavascriptnodejs

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
jonschlinkert/has-valueA utility function to check if an object value exists at a given path or is not empty26
jonschlinkert/array-firstReturns one or more elements from the beginning of an array11
jonschlinkert/array-lastReturns the last element(s) in an array35
jonschlinkert/is-numberUtility function to check if a value is a number or string representation of a number262
jonschlinkert/arr-diffReturns an array with unique values from multiple arrays using strict equality comparisons46
juliangruber/isarrayA polyfill for Array.isArray to support older browsers and Node.js versions.132
jonschlinkert/arr-flattenUtility function to flatten arrays by recursively iterating over their elements60
component/indexofFinds the position of a specified element in an array15
paulmillr/array.prototype.findindexPolyfills ES6 Array.prototype.findIndex for older environments28
sindresorhus/is-observableTool to check if a value is an Observable40
jonschlinkert/uniqueidGenerates unique sequential IDs with optional prefix and suffix.17
parshap/js-is-integerA polyfill implementation of the ES2015 Number.isInteger function in JavaScript12
jonschlinkert/deep-bindBinds a context to all functions in an object and its nested functions9
robatwilliams/es-compatChecks JavaScript code compatibility with target browsers and Node.js versions68
serkanyersen/ifvisible.jsChecks user interaction and visibility on the page1,953