一道可以很好练习数组API的题:
const array = [
{ name: "articaleA", tags: ["javascript", "es6", "css"] },
{ name: "articaleB", tags: ["animation", "transform", "css"] },
{ name: "articaleC", tags: ["javascript", "currying"] },
];
要求 输出如下
Javascript:2,[articaleA,articaleC]
css: 2, [articaleA,articaleB]