Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing object as key of object makes strange behavior #1282
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ljharb
Aug 7, 2018
Member
Object keys can only be strings or symbols; if you do Object.keys(o) you’ll see that the object has been turned into the string ’[object Object]’.
|
Object keys can only be strings or symbols; if you do |
ljharb
closed this
Aug 7, 2018
ljharb
added
the
question
label
Aug 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vadjs commentedAug 7, 2018
Is it ECMAScript bug? Or it's "very specific" explainable mechanics?