first of all, you have a mistake in the closing the tag for the button array,
you can filter array like that
const buttonTypes = [
{
linkType: "default",
icon: "hi",
},
{
linkType: "twitter",
icon:1,
},
{
linkType: "music",
icon: 2,
},
]
buttonTypes.filter((ele) => {
return ele.icon != 1
}).map((ele) => {
console.log(ele)
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…