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

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);

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

Es6 Giving Syntaxerror: Unexpected Token )

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

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

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

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

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?

Arrow Functions Inside Map In Render. React

I'd like to know if there is any performance difference between passing an arrow function to a… Read more Arrow Functions Inside Map In Render. React