Arrow function expressions
An arrow function expression is a compact alternative to a traditional function expression , with some semantic differences and deliberate limitations in usage:
this
,
arguments
, or
super
, and should not be used as
methods
.
new
throws a
TypeError
. They also don't have access to the
new.target
keyword.
yield
within their body and cannot be created as generator functions.