3 ms·
an object literal would provide the same guarantee but without the overhead of function prototype methods, wonder if there's any other reason?
by gingerrr 11y ago
an object literal would provide the same guarantee but without the overhead of function prototype methods, wonder if there's any other reason?
- drifkin 11y agoMaybe they're using functions so the values can have names? Perhaps easier to debug.