4 ms·
So, https://gist.github.com/danverbraganza/8447acc70ad08c92d4fd https://gist.github.com/danverbraganza/8447acc70ad08c92d4fd has an uglified version of the same
by nvader 11y ago
So, https://gist.github.com/danverbraganza/8447acc70ad08c92d4fd https://gist.github.com/danverbraganza/8447acc70ad08c92d4fd has an uglified version of the same code, shortening identifiers, removing extraneous whitespace, and (!) replacing bool(x) with not x to save 2 characters.
That's a good first stab at it, but it can definitely be smaller, esp. if you're willing to add more lines (which I'm not). Happy hacking!