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

Javascript Ecma6 Change Normal Function To Arrow Function

I have that code: function defineProperty(object, name, callback){ if(object.prototype){ … Read more Javascript Ecma6 Change Normal Function To Arrow Function

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

Passing This From .call() To Arrow Function

I have an arrow function that I am trying to execute with call(). For the sake of simplification, a… Read more Passing This From .call() To Arrow Function

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

How Do I Write An Arrow Function In Es6 Recursively?

Arrow functions in ES6 do not have an arguments property and therefore arguments.callee will not wo… Read more How Do I Write An Arrow Function In Es6 Recursively?

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?