3 ms·
Poor frontend devs.. stuff like this has to result in incredibly painful debugging because of assuming code would act one way when it does something else entire
by bostonsre 5y ago
Poor frontend devs.. stuff like this has to result in incredibly painful debugging because of assuming code would act one way when it does something else entirely.
> the !!"" isn't that weird of a syntax is it?
Why would someone say not not empty string in code somewhere? Or do you mean seeing !!var_that_could_have_empty_string isn't too weird?
- ulisesrmzroche 5y agoThat's what tests and code review is for. Truth is that if any of this kinda code gets into prod, then you got bigger problems than some arcane JS gotchas.