0
x = (i) => {....

is than short hand for

function x (i){....

wtf if i try to google "=>" i am getting ZERO results ?!

Ino
  • 31
  • 1
  • 7

1 Answers1

0

Its a fat arrow notation.

New way of writing functions in ES6

x = (i) => 4;

x() ;//4

Benefits of fat arrow functions is that you dont have to bind the functions with this operator.Arrow functions use the same this as the function which wraps them

Piyush.kapoor
  • 6,041
  • 1
  • 17
  • 18