MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/7ytegt/optional_chaining_may_be_coming_to_javascript/dujlyxa/?context=3
r/javascript • u/gregbaugues • Feb 20 '18
100 comments sorted by
View all comments
1
Really want this my code is littered with these. I also want a way to bind methods of JS classes with their own this. I have so many of these in my constructors: this.myfunc = this.myfunc.bind(this)
1 u/soulsizzle Feb 20 '18 I also want a way to bind methods of JS classes with their own this.Arrow functions do this. 1 u/CCB0x45 Feb 20 '18 I know arrow functions do this but it's nice to write using class syntax when you are writing a class.
I also want a way to bind methods of JS classes with their own this.
Arrow functions do this.
1 u/CCB0x45 Feb 20 '18 I know arrow functions do this but it's nice to write using class syntax when you are writing a class.
I know arrow functions do this but it's nice to write using class syntax when you are writing a class.
1
u/CCB0x45 Feb 20 '18
Really want this my code is littered with these. I also want a way to bind methods of JS classes with their own this. I have so many of these in my constructors: this.myfunc = this.myfunc.bind(this)