mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
12 lines
225 B
JavaScript
12 lines
225 B
JavaScript
import {tryToCatch} from 'try-to-catch';
|
|
|
|
const all = Promise.all.bind(Promise);
|
|
|
|
export default async (a) => {
|
|
const [e, result = []] = await tryToCatch(all, a);
|
|
|
|
return [
|
|
e,
|
|
...result,
|
|
];
|
|
};
|