在另一个数组中查找数组元素

时间:2018-01-30 16:25:20

标签: python python-3.x numpy

我有这个代码,我试图找出t数组的元素是否出现在c1数组

预期结果应为t1,t3,t6

{{1}}

1 个答案:

答案 0 :(得分:1)

可能你想要什么,但你需要澄清。

var itemList = [
  { type: "car", make: "audi", price: 500, number: 10, description: "a car" },
  { type: "bus", make: "renault", price: 50, number: 1, description: "a bus" }
];

const newItem = { type: "kite", make: "adobe", price: 10, number: 12, description: "Woo!" }
itemList.push(newItem);

console.log(itemList);
相关问题