我有 MAinArray
MainArray=[{
{First Name: "First Name"},
{Last Name: "Contact"},
{Last Name: "Contact"}
]
我想从这个数组中删除键值对,例如
if (key == 'First Name')
{
delete MainArray[key] /// this doesnt work
}
最终结果必须是
ResultArray=[{
{Last Name: "Contact"},
{Last Name: "Contact"}
]
人到中年有点甜
扬帆大鱼
相关分类