โarrow function as methodโ๏ธ
๐ง under construction
JS โฉ objects โฉ arrow function โฉ as method
โญ๏ธ โ๏ธuse with cautionโ๏ธ
normally, you don't use arrow functions as methods, but if you have๏ผ
an object A that has a method returning a new object B,
object B has its own methods, you don't want this in these methods to refer to B, but refer to A instead,
then using arrow function as method is an option.
๐ see example๏ผ Sequence
Last updated
Was this helpful?