Relying on object property order for a styling API. Good or bad? eg. styles({ backgroundBlue: true, backgroundRed: true, }); In this case the background would be `red` as it appears last. Relying on property order feels gross but can't think of a better API?
-
-
Good to know! Do you have any resources to prove your point? Always nice to have some docs to refer to when someone is asking you the same question.
New conversation -
-
-
That was always my understanding, but I was told by a better JS dev than me (
@vjeux IIRC) that it’s poor form to rely on it in an API. -
Do what I say but don't say what I do... I definitely used it for jParser API: https://github.com/vjeux/jParser
End of conversation
New conversation -
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 