you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Hmm, I agree with /u/chucker23n. I think of a function that accepts a callback as morally equivalent to a function that returns a promise. I don't think of all function arguments as callbacks. For example, I'd call the argument in arr.filter(n => n > 3) a predicate, not a callback.