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

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

Use Arrow Functions In Jquery Plugin

I am writing a jQuery plugin. But it doesn't seem to work when I use arrow function to extend j… Read more Use Arrow Functions In Jquery Plugin

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

Typescript Arrow Operator To Define A Function On Prototype

As shown in this example, the assignment to a and defining b results in different function type. e… Read more Typescript Arrow Operator To Define A Function On Prototype

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

Expected To Return A Value In Arrow; Function Array-callback-return. Why?

I'm having some issues understanding why I'm getting a compile warning on this piece of my … Read more Expected To Return A Value In Arrow; Function Array-callback-return. Why?

How To Bind 'this' To An Object Arrow Function?

Let us suppose we have an object profile with properties name and getName method (arrow function). … Read more How To Bind 'this' To An Object Arrow Function?

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?