ExploreOurteamtrainingCourses (3)

This is a guest post by Hemanth H.M and was originally published on H3manth.com.

Here is a collection of ES6 one liners to show off!

NodeList to Array:

Unique Arrays:

Destructuring:

Swap like a snake:

Max in array?:

List comprehension:

_map?

Object.isz!

Is it a hidden file?:

Repeat with me:

If you are using some, please do let me know!

Hope it did blew your mind! 😉

blew

Hemanth H.M
Hemanth is a Computer Polyglot, CLI + WEB ♥'r who writes at h3manth.com.

0
es6, JavaScript

Comments