loverajoel / jstips

This is about useful JS tips!
http://jstips.co
GNU General Public License v3.0
12.5k stars 803 forks source link

3 Array Hacks #396

Closed helfi92 closed 7 years ago

helfi92 commented 7 years ago

3 Array Hacks

TL;DR;

Arrays are everywhere in JavaScript and with the new spread operators introduced in ECMAScript 6, you can do awesome things with them. In this post I will show you 3 useful tricks you can use when programming.

Username

@hassanhelfi

kurtextrem commented 7 years ago

Cool! :shipit:

neighborhood999 commented 7 years ago

@helfi92 I recommend to use const or let instead of var. 😄

zenopopovici commented 7 years ago

Nice :shipit:, but yea, use const or let

helfi92 commented 7 years ago

@zenopopovici @neighborhood999 Good catch. Pushed my changes.

loverajoel commented 7 years ago

@helfi92 wonderful tip! Thanks! 🙌