const awaitWrap = promise => {
return promise
.then(data => [data, null])
.catch(err => [null, err]);
};
-
若不能出口成章,我选择避而不言
const awaitWrap = promise => {
return promise
.then(data => [data, null])
.catch(err => [null, err]);
};
若不能出口成章,我选择避而不言