by tjallingt · 9y ago · 0 comments
Does this actually work? I tried it out in the Chrome Debugger and it didn't work. It looks like the author is confusing it with Rusts match statement.
> dividers[2](6)
3
> dividers[undefined](6, 3)
2 var divider = dividers[divisor] || dividers[undefined];