DevilRoshan / Question

前端问题解决
0 stars 0 forks source link

[Daily][data-handler]数据格式转化问题-扩展 #39

Closed DevilRoshan closed 4 years ago

DevilRoshan commented 4 years ago

出自 https://github.com/azl397985856/fe-interview/issues/2

已知数据格式:

const userToSkill = {
  robert: ["programming", "design", "reactjs"],
  kimia: ["java", "backend", "services"],
  patrick: ["reactjs"],
  chris: ["reactjs", "programming"]
};
完成函数:
寻找拥有最相似技能的人群
function setOfUsersWithSimillarSkills(userToSkill) {

}
期望输出: ["robert", "chris"]
DevilRoshan commented 4 years ago

https://github.com/DevilRoshan/Question/blob/master/20200611-data-handler-tansform-data-extends.md