Re:The optional chaining operator, “modern” browsers, and my...
by tgv on Tuesday January 11, 2022 @01:16PM
(#29895354)
It is lazy, indeed, but the whole ecosystem enables it. You install some yarn based framework installer, create a project, and before you know it, it sets something like "browser-support" at 95%. That number is estimated from dubious sources, and quickly eliminates older versions, and every update discards more versions.
The ?. operator was included in Edge, Safari, Chrome and Firefox early 2020. According to caniuse.com, only 90% of users have browsers that support it... but depending on who your audience is, it might be much less (e.g. if you target schools, or government, there might be computers locked in older OSs or browser versions... at least that's the case in my country).