It's a sugary anon function with some key differences.
(params) => { code }
- No need for the
function
keyword - No need for
{}
if the function is only a single line - Single arguments (except
rest
args) don't need()
but 0 args do return
is implicit with single line functions