Cannot figure out why bind
is not working with IIFE
inside object method? What I've missed?
Thanks in advance.
Example:
var a = {
b: () => console.log('Hello'),
c: (() => this.b()).bind(a)()
}
a.b()
a.c
// Error: Uncaught TypeError: this.b is not a function