iOS 14 has this API, however how can this be achieved in iOS 13 or below?
For example, suppose the JS has a function defined as:
function upperCaseAsyn