TIL I learned that if you set the `length` property of a javascript array, it will truncate it. So bizarre.
```
a = [1,2,3]
a.length = 0
a === []
javascript is so fun. i love these quirks.
Please Login to reply.
No replies yet.