How to remove a JavaScript array element using the splice method - Array.prototype.splice()

preview_player
Показать описание

You can find plenty more articles like this on my blog!
Рекомендации по теме
Комментарии
Автор

Thanks Kevin, this saved me. I needed an approach that totally removed the item from a JSON object and this worked. I had been using DELETE but it leaves undefined elements behind in the array and it got messy! Cheers :)

MrMorph