|
|
|
|
|
by epidemian
4913 days ago
|
|
I don't think it's _that_ weid considering JS is a language where functions are perfectly normal values. Someone unfamiliar with the semantics of "this" in JS might expect that: player[playing ? "play" : "pause"]()
(a not-so-weird JS pattern) would be the same as: (playing ? player.play : player.pause)()
|
|