apr-concat
v3.0.3
Published
Applies iteratee to each item in coll, concatenating the results. Returns the concatenated list.
Downloads
2
Maintainers
Readme
concat
Applies iteratee
to each item in coll
, concatenating the results. Returns the concatenated list.
Parameters
Examples
import awaitify from 'apr-awaitify';
import concat from 'apr-concat';
const readdir = awaitify(fs.readdir);
const dirs = [
'dir1',
'dir2',
'dir3'
];
const files = await concat(dirs, async (dir) =>
await readdir(dir)
);
Returns Promise
series
Parameters
Returns Promise
limit
Parameters
Returns Promise