摘要: The optimizing compiler optimizes for what it’s seen. If it sees something new, that’s problematic. Seleting properties has some strange implications 阅读全文
posted @ 2022-12-03 23:11 Zhentiw 阅读(54) 评论(0) 推荐(0) 编辑
摘要: Code: benchmark.js const { performance } = require('perf_hooks'); // SETUP 🏁 let iterations = 1e7; const a = 1; const b = 2; const add = (x, y) => x 阅读全文
posted @ 2022-12-03 22:46 Zhentiw 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Get all possible paths that could be called by _.get (a lodash function) to get the value of an object type T1 = ObjectKeyPaths<{ name: string; age: n 阅读全文
posted @ 2022-12-03 20:40 Zhentiw 阅读(18) 评论(0) 推荐(0) 编辑