摘要:
function deepCopy(obj) { let result = Array.isArray(obj) ? [] : {}; for (let key in obj) { if (obj.hasOwnProperty(key)) { if (typeof obj[key] 'object' 阅读全文
摘要:
这是我第三次默写,你呢? let arr = [...Array(10).keys()].map(x => x + 1); console.log(arr); function searching(arr, target) { let start = 0; let end = arr.length 阅读全文