โarrow function as class fieldโ๏ธ
๐ง under construction
JS โฉ objects โฉ arrow function โฉ as class field
arrow function as class field closes over the class's this context.
the this inside the arrow function's body๏ผ
will correctly point to the instance (or the class itself, for static fields).
๐ MDN โฉ arrow functions used as methods โญ๏ธ
Last updated
Was this helpful?