Symbol array props! let a = Symbol('a'), b = Symbol('b') let x = { [[a, b]]() { return 'test' } } console.log(x[[a, b]]()) //prints 'test'
@brandonhorst @domenic Great, thanks! https://github.com/zloirock/core-js … is the relevant project that Babel uses/recommends.
-
-
@brandonhorst@domenic Actually, it'd be to allow: `var symbol = Symbol(); var obj = {}; obj[symbol] = "foo";`. No way to prevent it.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 