3 ms·
As usual I found myself writing these more and more before finding out there was a word for them. Are there any preprocessors or libraries to make statements l
by philipodonnell 9y ago
As usual I found myself writing these more and more before finding out there was a word for them.
Are there any preprocessors or libraries to make statements like this easier in Javascript? Sometimes the guard statements can be longer than the function code and I go back and forth on whether to throw (forces the caller to anticipate) or return (causes lots of silent failures).
It would be great to use a defined approach.