📜  在 js 中过滤 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:58.901000             🧑  作者: Mango

代码示例6
const filterThisArray = ["a","b","c","d","e"] 
console.log(filterThisArray) // Array(5) [ "a","b","c","d","e" ]

const filteredThatArray = filterThisArray.filter((item) => item!=="e")
console.log(filteredThatArray) // Array(4) [ "a","b","c","d" ]