3 ms·
> It seems like a and m are optional arguments. > Now those unused parameters a and m come in handy. No writing var in this script. Precisely. A trick to reduc
by ggambetta 9y ago
> It seems like a and m are optional arguments.
> Now those unused parameters a and m come in handy. No writing var in this script.
Precisely. A trick to reduce the character count, nothing more. Love doing this kind of thing (http://gabrielgambetta.com/tiny_raytracer.html http://gabrielgambetta.com/tiny_raytracer.html).
> Making a.async truthy ensures
"Truthy"???
- rhaps0dy 9y agoTruthy means that if(<truthy value>) evaluates to `true`, but that the value is not literally `true`.
- deleted 9y ago[deleted]
- venning 9y agoTruthy on MDN: https://developer.mozilla.org/en-US/docs/Glossary/Truthy https://developer.mozilla.org/en-US/docs/Glossary/Truthy
- deleted 9y ago[deleted]
- kevinmannix 9y agoIn JavaScript, "falsy" is null, undefined, 0, '', or false. Everything else is truthy, including empty objects, strings with only whitespace. Many bugs have been caused by incorrect uses of truthy and falsy.
- venning 9y agoAlso `NaN`.
- deleted 9y ago[deleted]