Remix.run Logo
BriggyDwiggs42 2 days ago

I honestly really like those two operators in js.

melncat 2 days ago | parent [-]

Don't forget about ?? as well

jbreckmckye 2 days ago | parent | next [-]

I'm a big fan of the Elvis operator myself (.?)

chuckadams 2 days ago | parent [-]

.? is null-safe property access. Elvis is ?:

jbreckmckye 2 days ago | parent [-]

Oh, that makes more sense, because ?: has eyes

https://en.m.wikipedia.org/wiki/Elvis_operator

?:-)

mock-possum a day ago | parent | prev [-]

Mmm nullish coalescing