Skip to content
loading...

re: 5 Way to Append Item to Array in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Yes! Good one, let me add it to my notes 💪 Thanks for sharing 😀
 

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 😁

code of conduct - report abuse