const list=["a","b","c","d"]
const block=["b","c"]
gene=[]
list.filter(c=>{if(!block.includes(c)){gene.push(c)}})
console.log(gene)
list配列からblock配列を削除する操作
Go to list of users who liked
More than 3 years have passed since last update.
const list=["a","b","c","d"]
const block=["b","c"]
gene=[]
list.filter(c=>{if(!block.includes(c)){gene.push(c)}})
console.log(gene)
list配列からblock配列を削除する操作
Register as a new user and use Qiita more conveniently
Go to list of users who liked