let ss = [
{name: "吴梦",id: 1,},
{name: "王倩",id: 2,},
{name: "陈飘",id: 3,},
{name: "刘莎",id: 4,},
{name: "吴梦2",id: 5,},
]
let dd = ss.filter(
(item) => item.name && item.name.includes('梦')
);
console.log(dd)
得到: