-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
When a callback is not specified the methods should return a Promise to make it easier to work with in an async/await / promise based code base.
let data1;
Be.projects({q: 'motorcycle' }, function (err, res, data) {
data1 = data;
})
// VS.
const data = await Be.projects({q: 'motorcycle'});
// VS.
Be.projects({q: 'motorcycle'})
.then(function (data) {
// do something
})Reactions are currently unavailable