2.1.7 • Published 1 year ago

@karmaniverous/async-find v2.1.7

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

async-find

To install:

npm install @karmaniverous/async-find

To import:

import { asyncFind } from '@karmaniverous/async-find`;

See tests for examples of usage!

API Documentation

Functions

Typedefs

asyncFind(values, predicates) ⇒ Array

Step through a array of input values. Pass each input value through an array of async predicate functions, passing the output of each predicate as the input of the next, until either the predicates are exhausted or one of them returns a falsy result.

Kind: global function
Returns: Array - An array containing the first input value that survived all predicates, and its final predicate output.

ParamTypeDescription
valuesArrayarray of values
predicatesArray.<Predicate>array of async predicate functions

Predicate ⇒ *

async predicate function callback

Kind: global typedef
Returns: * - output

ParamTypeDescription
value*value to be tested

See more great templates and other tools on my GitHub Profile!

2.1.6

1 year ago

2.1.5

1 year ago

2.1.7

1 year ago

1.0.2

1 year ago

0.0.2-2

1 year ago

1.0.1

1 year ago

0.0.2-1

1 year ago

1.0.0

1 year ago

0.0.2-0

1 year ago

0.0.2-5

1 year ago

0.0.2-4

1 year ago

0.0.2-3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.0.2

1 year ago

2.1.3

1 year ago

2.0.0-0

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

0.0.1

2 years ago

0.0.0

2 years ago