DEV Community

Discussion on: 15 Killer πŸ—‘ JS techniques you've probably never heard of πŸ”ˆπŸ”₯

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ

Thank god I don't use TS.

The spread syntax is for spreading any iterable - which a Set very definitely is. It is useful for way more than just Arrays or Strings - which TS seems to insist it be one of.

Thread Thread
 
m4heshd profile image
Mahesh Bandara Wijerathna

High five πŸ–πŸ½. I'm one of the rare ones who avoid TS at all costs. No need to make our lives harder as devs just to get on the bandwagon.