LJHarb

年加入本站
LJHarb

最近在 Docs 的活動

檢視所有活動
頁面 日期 回應

Object.fromEntries()


Revert to revision of 2019-06-04 03:36:02.314488 by SphinxKnight: "english."

Array.from()


Revert to revision of 2019-08-21 14:22:33.645175 by LJHarb: "This isn't "called duck typing"; this is Array.from being specified to handle arraylike objects, which have a length property. This sentence adds more confusion than it removes."

Array.from()


`undefined` can be redefined, so `void` is required; the ||, not the && is correct here.

Array.from()


`x == null` covers both null and undefined; as does `== undefined`; adding `== undefined` here is redundant.

globalThis


I'm the proposal champion for `globalThis`; hopefully this improves the article a bit.