I just can’t understand how to do this function synchronously?
function (value) {
const img = (async () => {
const image = await base64Img.requestBase64(value);
return image;
})();
return img;
}
In result I have a promise Promise { <pending> }
, but I need result there. Please help :)