Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 2.2 KB

includes.md

File metadata and controls

43 lines (35 loc) · 2.2 KB

Async Agent

A javascript library of async functions

npm build coverage deps size vulnerabilities license


includes(array, value, [settings]) ⇒ Promise

Determines if an element is in an array. Uses SameValue comparison performed async.

Returns: Promise - The promise is resolved with true if a match is found or false if no matches are found.

Param Type Default Description
array Array An array to iterate over.
value * The value to find in array.
[settings] object Optional settings object.
[settings.down] boolean false Decrement the index on each iteration from highest to lowest.
[settings.delay] number 0 Delay before calls in ms. Can be updated at any time to effect the delay before future calls.