摘要: What is holey array: an array with hole(s) const array = [1,2, ,3] Why this is a problem? Should array[2] to be undefined? Yes and no.. normally it is 阅读全文
posted @ 2023-11-13 15:58 Zhentiw 阅读(20) 评论(0) 推荐(0)
摘要: import { createBenchmark } from "./benchmark"; class MyArray extends Array {} const SIZE = 100; const obj: Record<string, number> = {}; /** * { * _0: 阅读全文
posted @ 2023-11-13 15:25 Zhentiw 阅读(13) 评论(0) 推荐(0)