How do I delete the corresponding element by name in js, and there is more than one?

how to delete the corresponding element by name in

js, and there is more than one, which is similar to checkbox inverting

.

example:

let arr = ["a","b","c","d","e"];

suppose you want to delete an and b, what should you do? ask passing bosses

Dec.16,2021

let index;
while ((index = arr.findIndex(n => /^(a|b)$/.test(n))) > -1) arr.splice(index, 1);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eacf27-5cf33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eacf27-5cf33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?