全部评论
辛苦了,看得出内容有很精心的准备,果断star了
哈哈哈,中大学子都乐于整理和奉献~顶顶顶~
感谢大佬
厉害了,大过年的
19***[email protected] 谢谢大佬
膜拜大佬
[email protected]谢谢
又见大佬🧍♂️
下载了解压错误🤣🤣
厉害👍 感谢🙏
CyC原来是老哥你啊
大佬大佬,羡慕,敬佩,看齐!!!
非常感谢!!
我可以选择直接看你的总结吗?感觉好多书籍晦涩难懂而且量大!
感谢
没有想到和大佬去了同一家……
好人一生平安
进不去
[email protected]谢谢大佬
感谢大佬,学到很多!
相关推荐
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
const flattern = (obj) => {
const res = {};
const dfs = (curr, path) => {
if(typeof curr === 'object' && curr !== null) {
const isArray = Array.isArray(curr);
for(let key in curr) {
const newPath = path ? isArray ? `${path}[${key}]` : `${path}.${key}` : key;
dfs(curr[key], newPath);
}
} else {
res[path] = curr
}
}
dfs(obj);
return res;
}
查看3道真题和解析 点赞 评论 收藏
分享

