shineYao

2017年9月3日 #

ScriptOJ-flatten2#91

摘要: generator的使用 js function flatten2 (arr) { const result = [] function flatten(ar) { ar.map(iter = { if(Array.isArray(iter)) { flatten(iter) } else { re 阅读全文

posted @ 2017-09-03 23:18 shineYao 阅读(105) 评论(0) 推荐(0) 编辑

ScriptOJ-unique#89

摘要: 一般做法 超前做法 阅读全文

posted @ 2017-09-03 23:09 shineYao 阅读(81) 评论(0) 推荐(0) 编辑

ScriptOJ-safeGet#99

摘要: ```js const safeGet = (data, path) => { if(!path) return undefined; const pathArr = path.split('.'); let result = data; let length = pathArr.length while(length--) { const iter = pathArr... 阅读全文

posted @ 2017-09-03 22:58 shineYao 阅读(124) 评论(0) 推荐(0) 编辑

测试

摘要: 安装步骤 1. 这是1 2. 这是2 小细节 分支步骤 阅读全文

posted @ 2017-09-03 22:53 shineYao 阅读(96) 评论(0) 推荐(0) 编辑

导航