惠科股份2025届校园招聘正式启动
🚀校招想上岸,快来投惠科
🌈2025校招开启,多元岗位等你
🌏新视界 惠精彩
https://mp.weixin.qq.com/s/gG0Adu4MaBXOJayr8820tw
#25届找工作求助# #应届生# #秋招#
🌈2025校招开启,多元岗位等你
🌏新视界 惠精彩
https://mp.weixin.qq.com/s/gG0Adu4MaBXOJayr8820tw
#25届找工作求助# #应届生# #秋招#
全部评论
相关推荐
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
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道真题和解析 点赞 评论 收藏
分享
点赞 评论 收藏
分享

海康威视公司福利 1267人发布