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