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

Return Value Using Arrow Syntax

So to my understanding which is obviously wrong at this moment in time is that, return arg => ar… Read more Return Value Using Arrow Syntax

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?

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

Es6 Giving Syntaxerror: Unexpected Token )

Here is my Node.js script: pDownload('http://serv/file', 'localfile') .then( ()=&… Read more Es6 Giving Syntaxerror: Unexpected Token )

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

Nodejs Arrow Function With Expression

According to the documentation, you can return an expression from an arrow function: (param1, param… Read more Nodejs Arrow Function With Expression

What Is Double Arrow Function?

What is 'let x= something1 => something2 => something3' ? I have this code and I'… Read more What Is Double Arrow Function?

How To Use Arrow Functions (public Class Fields) As Class Methods?

I'm new to using ES6 classes with React, previously I've been binding my methods to the cur… Read more How To Use Arrow Functions (public Class Fields) As Class Methods?

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

I Wonder What This Function Really Does .split(' ').map(x => +x);

I saw this line of code in a correction in a coding game const tC = readline().split(' ').m… Read more I Wonder What This Function Really Does .split(' ').map(x => +x);