|
|
|
|
|
by scottmf
3253 days ago
|
|
Why would you want to use callbacks? Here's a code example from an npm package I was looking at, vs how I would rewrite it in modern JS: https://gist.github.com/scf4/8157abd755eb9c232e87dcc342b78b4... Some of it may be preference but a lot of it is objectively simpler to reason about. I don't understand why anyone would choose to make things unnecessarily complex. |
|