4 ms·
the 2nd form implicitly returns the value of valid if it's truthy and nil if it's falsey; the 1st form always returns nil
by graywh 4y ago
the 2nd form implicitly returns the value of valid if it's truthy and nil if it's falsey; the 1st form always returns nil
- burke 4y agoIndeed, but the return value of a guard clause shouldn't be important!