蚂蚁集团支付宝测试开发实习内推
微信:524828046
邮箱:feichichi.fc@alipay.com
【更好的世界,更好的你】
微信:524828046
邮箱:feichichi.fc@alipay.com
【更好的世界,更好的你】
【支付宝】质量技术实习生招聘_蚂蚁集团招聘内推_牛客网
https://gw-c.nowcoder.com/api/sparta/jump/link?link=https%3A%2F%2Fwww.nowcoder.com%2Fjob%2F15343%3FjobIds%3D47479
全部评论
相关推荐
点赞 评论 收藏
分享
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
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道真题和解析 点赞 评论 收藏
分享
OPPO公司福利 1059人发布