Re:Avoid Null Checks by Replacing Finders with Tellers
by wwweston on Monday June 17, 2013 @01:15PM
(#5894431)
Anybody who's written much JavaScript without a jQuery-like function should appreciate this too -- used to be much more common to have code littered with checks to see if a dom element existed, then do an operation if it did. Performing an operation over a set (including empty) of elements seems easier.
[ Parent
| on HN ]