Skip to content Skip to sidebar Skip to footer
Showing posts with the label Arrow Functions

"this" Keyword Behaves Differently When Using Arrow Functions With Jquery Callbacks

I have a table with multiple rows, and on each row, there is an edit and delete button. In short, w… Read more "this" Keyword Behaves Differently When Using Arrow Functions With Jquery Callbacks

Curried Function Where Es7 Property Initializers Aren't Enabled

I have the following arrow function in a so called curried format, taken from this SO answer: const… Read more Curried Function Where Es7 Property Initializers Aren't Enabled

Arrow Function And This Inside A Constructor Function

I have read this paragraph about the this keyword : https://bonsaiden.github.io/JavaScript-Garden/#… Read more Arrow Function And This Inside A Constructor Function

Why Arrow Function Is Not Passing Arguments?

I'm using angular w/ rxjs to observe user events on the interface. However, I'm having this… Read more Why Arrow Function Is Not Passing Arguments?

Using Arrow Functions With .call()? "this" Varies Based On If In Devtools Or Iojs Locally? Should One Avoid Using Arrows With .call?

I've been running the below code and I notice that when running in devtools, obj.hi = 'defa… Read more Using Arrow Functions With .call()? "this" Varies Based On If In Devtools Or Iojs Locally? Should One Avoid Using Arrows With .call?

Es6 Class Methods Not Returning Anything Inside Foreach Loop

For some reason the method getTwo() inside the PollClass won't return 2 but undefined. If I put… Read more Es6 Class Methods Not Returning Anything Inside Foreach Loop

Reduce Array To Object Using Arrow Function

I'm playing around with the limits of array and arrow functions and I'm trying to convert t… Read more Reduce Array To Object Using Arrow Function

Is An Arrow Function More Performant Than A Similar Regular (anonymous) Function?

According to MDN: An arrow function expression is a syntactically compact alternative to a regular… Read more Is An Arrow Function More Performant Than A Similar Regular (anonymous) Function?