© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Jason
I learn and make and share
There is at least one more way to empty an array: Use .shift() instead of .pop().
.shift()
.pop()