DEV Community

Discussion on: My First JavaScript Shitpost 💩📮

Collapse
 
zarehba profile image
zarehba

There kinda is, though. Remove element at n-th index from array with array.splice(n, 1).
Note that second argument states how many items you remove starting at index, you could remove more than 1.
const array = [10,11,12,13];
array.splice(3,1);
console.log(array); // [10, 11, 12]