I'm trying remove an object at index.
This is what I have, but my array. length returns unchanged.
for(let i = 0; i > array.length; i++){
if(array[i] === index) {
array.splice(i, 1)
}
}
return array;
omg, I was way overthinking this. Here is my solution.
function removeArtist(array){
return array.splice(12, 1);
}
console.log(removeArtist(artists));