Package Exports
- apr-sort-by
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (apr-sort-by) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sort-by
Sorts a list by the results of running each coll
value through an async iteratee
.
Parameters
Examples
import awaitify from 'apr-awaitify';
import sortBy from 'apr-sort-by';
const stat = awaitify(fs.stat);
const files = [
'file1',
'file2',
'file3'
];
const sorted = await sortBy(files, await (file) => {
const { mtime } = await stat(file);
return mtime;
});
Returns Promise
limit
Parameters
Returns Promise
series
Parameters
Returns Promise