élément de suppression du tableau jQuery
let values = [1,2,3,4,5];
let evens = values.filter(v => v % 2 == 0);
alert(evens);
Fine Fowl
let values = [1,2,3,4,5];
let evens = values.filter(v => v % 2 == 0);
alert(evens);
var y = [1, 2, 2, 3, 2]
var removeItem = 2;
y = jQuery.grep(y, function(value) {
return value != removeItem;
});