gpt4 book ai didi

javascript - 减去数组 - javascript

转载 作者:数据小太阳 更新时间:2023-10-29 04:38:44 27 4
gpt4 key购买 nike

<分区>

我有这样的数组;

var john = { name: "John Smith", age: 23 };
var mary = { name: "Mary Key", age: 18 };
var bob = { name: "Bob-small", age: 6 };
var people = [john, mary, bob];

var john2 = { name: "John Smith", age: 23 };
var people2 = [john2];

我想做的是从 people 中减去 people2 并得到结果;

[mary, bob];

我怎样才能做到这一点?时间差

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com