#实习信息# #龙图游戏实习# #游戏策划#
【龙图游戏】游戏策划(剧情/关卡/战斗/系统/数值/UE/资源)
立即投递>>>https://www.nowcoder.com/link/zsdt-ltyx
更多实习>>>https://nowpick.nowcoder.com/u/jump/MDkPhF
【龙图游戏】游戏策划(剧情/关卡/战斗/系统/数值/UE/资源)
立即投递>>>https://www.nowcoder.com/link/zsdt-ltyx
更多实习>>>https://nowpick.nowcoder.com/u/jump/MDkPhF
全部评论
相关推荐
点赞 评论 收藏
分享
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
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道真题和解析 点赞 评论 收藏
分享