DEV Community

Discussion on: Remembering that "functions are objects" can help in writing more concise code

Collapse
 
somedood profile image
Basti Ortiz

I didn't even think about the context of the execution when I wrote this article. That's my mistake on my part. I just wanted to show that one can generally use function definitions* as arguments in the hopes of shortening code just a bit more. Thanks for clarifying and pointing that out, though!

*By functions, I refer to short, simple, single-purpose functions that don't necessarily have significant side effects.