Hi, I want to wrap a JS method which take a string...
# javascript
m
Hi, I want to wrap a JS method which take a string and a callback. Depending of the string value, the callback can differ. Exemple:
Copy code
on('error', (error) -> {})
on('load', (progress, size) -> {})
Do you know the best approach to handle this case ?