🌈 搜索
📅  最后修改于: 2022-03-11 15:01:38.840000             🧑  作者: Mango
const arr = [1, 2, 3, 4, 5, 6]; const filtered = arr.filter(el => el === 2 || el === 4); //[2, 4]