The below is an off-site archive of all tweets posted by @varunkumar ever

November 17th, 2016

@psankar More often its used in small functions that do some operations on the input.

via TweetDeck in reply to psankar

@psankar
return itm * item;
}
}. then(console.log)

via TweetDeck in reply to varunkumar

@psankar
Without =>:
fetch()
.then(function(res) {
return res.json();
}.then(function(arr) {
return arr.map(function(itm) {

via TweetDeck in reply to varunkumar

@psankar
With arrow:
fetch()
.then(res = > res.json)
.then(arr => arr.map(itm => itm * itm))
.then(console.log)

via TweetDeck in reply to psankar

@psankar Arrow fns are quite handy in async programming. Chaining will make code flow easier to read.

via TweetDeck in reply to psankar

@psankar do u mean arrow fns in JS vs other langs?? or, arrow fncs vs traditional ones in JS itself??

via TweetDeck in reply to psankar

@thecodejack Looks like you are frustrated with some stuff here. :)

via TweetDeck in reply to thecodejack

Empower your emails using email markups — developers.google.com/gmail/markup/

via TweetDeck

@psankar What would be the impact of this?

via TweetDeck in reply to psankar