You can also use it to shrink array
const array = [1, 2] array.length = 1 console.log(array) // [1]
WOOO! never thought of that! Adding to my notes!!! thanks for sharing π
We're a place where coders share, stay up-to-date and grow their careers.
You can also use it to shrink array
WOOO! never thought of that! Adding to my notes!!! thanks for sharing π