Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
語法 包含 Non-Enumerable 屬性? 包含原型鍊? Note
'name' in person ✔️ ✔️ 範圍超過自己本身
Object.getOwnPropertyNames(person) ✔️ no
Object.keys(person) no no Enumerable props ONLY
for (let x in person) no ✔️ Enumerable props ONLY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.