Join Slack
Powered by
Hi, I want to wrap a JS method which take a string...
# javascript
m
mmaillot
03/09/2018, 1:05 PM
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 ?
Open in Slack
Previous
Next