in this example, it is possible to exclude the value of an array of type CONST, and the value of an array is passed to or another.
I had this problem.
fields = [1,2,3,4]
var t = fields.filter(n => {
return n != 4;
});
// t => [1,2,3]
fields.splice(0, fields.length, ...t);
console.log(fields);//[1,2,3]