#实习信息# #好未来实习# #前端开发实习#
【好未来】前端开发实习生-提拍拍
立即投递>>>https://www.nowcoder.com/intern/63782?jobIds=57660&ncsr=
更多实习>>>https://www.nowcoder.com/link/sxgcdt
【好未来】前端开发实习生-提拍拍
立即投递>>>https://www.nowcoder.com/intern/63782?jobIds=57660&ncsr=
更多实习>>>https://www.nowcoder.com/link/sxgcdt
全部评论
一周两天????
相关推荐
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
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道真题和解析 点赞 评论 收藏
分享
点赞 评论 收藏
分享
