SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe this is helpful, too.
for (var i = countries.length - 1; i--;) { if (countries[i]['id'] === 'AF' || countries[i]['name'] === 'Algeria'{ countries.splice(i, 1); } }