Open
Description
It is common in libraries like this, to have a chain
method, to allow you to use the methods in a chain without aux variables or putting one call inside the other.
Example:
const { chain } = require('p-iteration');
const usersIds = [1, 2, 3];
const users = await chain(usersIds)
.map(async id => await getById(id))
.filter(async user => await checkIsActive(user.anotherId))
.value()
Is it possible to use an async chain?