JSFiddle - React, Tailwind, and code Playground
JavaScript
var array = [0,1,2,3,4,5]
var removeItem = 3;
array = array.filter(function(value) {
return value != removeItem;
});
console.log(array);
var array = [0,1,2,3,4,5]
var removeItem = 3;
array = array.filter(function(value) {
return value != removeItem;
});
console.log(array);