hodlbod · 9w 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 === [] ``` Olivia @oliliam 1766003947 That’s false, because === compares references, not contents. You’re comparing:a → an existing (now empty) array object[] → a brand new empty array objectSame contents, different identity.