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

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 )

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

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

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

Angular2 Subscribe Understand Arrow Function

I try to understand arrow functions of typescript by the example of Angular 2 Observable subscribe … Read more Angular2 Subscribe Understand Arrow Function