给定示例数组
array =
[
["name1", ["blue", "yellow", "pink"], "id"],
["name2", ["green", "orange"], "id"],
["nameN", ["purple", "black", "white", "red"], "id"],
];
在(香草)Js中,是否有可能有效地获得name和id匹配两种给定颜色的颜色(比如red和black)?
相关分类