A javascript library of async functions
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. |