0 Replies - 489 Views - Last Post: 15 February 2014 - 05:04 PM

#1 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3823
  • View blog
  • Posts: 13,553
  • Joined: 12-December 12

[link] ES6 one liners

Posted 15 February 2014 - 05:04 PM

ES6 One Liners to Show Off

These interesting one-liners offer a glimpse into the near future with EcmaScript 6.

For example, List comprehension:
[ for (value of ["Harriet", "178"]) value ].join(" was ");
// Would give us "Harriet was 178"
// BTW it was Charles Darwin's tortoise.


Is This A Good Question/Topic? 0
  • +

Page 1 of 1