I just bumped into this. Anyone have insight as to why this works?
const a = {b: 2};
console.log( a[['b']] );
// Result: 2
I just bumped into this. Anyone have insight as to why this works?
const a = {b: 2};
console.log( a[['b']] );
// Result: 2
For further actions, you may consider blocking this person and/or reporting abuse
๐ Just want to lurk?
That's fine, you can still create an account and turn on features like ๐ dark mode.
Siรดn Grabham-Madden -
Tosin Moronfolu -
Maxime Guilbert -
Ycrypto-3 -
Once suspended, sobiodarlington will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, sobiodarlington will be able to comment and publish posts again.
Once unpublished, all posts by sobiodarlington will become hidden and only accessible to themselves.
If sobiodarlington is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sobio Darlington.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community ๐ฉโ๐ป๐จโ๐ป safe. Here is what you can do to flag sobiodarlington:
Unflagging sobiodarlington will restore default visibility to their posts.
Top comments (3)
Index(es) needs to be string and JS will automatically convert anything used as object's index to a string.
['b'].toString()
happens to be equal to 'b' (its same as['b'].join(',')
).Looks like it.
not sure if that's related but [['b']] appears to be equal to 'b'