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 === []
Truly awful. It should be a read-only attribute or method.
Please Login to reply.
No replies yet.