r/angularjs • • Sep 23 '22

[Resource] 4 Ways to Empty An Array In JavaScript

https://youtu.be/qA3hbO0R6E4
6 Upvotes

8 comments sorted by

6

u/scunliffe Sep 23 '22

TL;DR is the answer just…

foo = [];

2

u/middlebird Sep 23 '22

Why would anyone do it any other way?

→ More replies (1)

5

u/HettySwollocks Sep 23 '22

That seems like an odd thing to video when it could just be a quick article

3

u/chmod777 Sep 23 '22

how else can you monitize your youtube channel?

1

u/HettySwollocks Sep 23 '22

I'd read up on how you monetize youtube. It's about time and engagement plus a ton of other things

→ More replies (1)