How to remove element from array

Tags:
Date:

Tuesday 09/08/2022

const arr = [1,2,3,4]
arr.length = 2 // [1,2]
const arr = [1,2,3,4]
arr.splice(1,1) // [1,3,4]

There are some other methods, this is only the basics.

© 2023 Vadim Alakhverdov