Skip to content

Instantly share code, notes, and snippets.

@natefaubion
Created October 5, 2013 15:32
Show Gist options
  • Save natefaubion/6842333 to your computer and use it in GitHub Desktop.
Save natefaubion/6842333 to your computer and use it in GitHub Desktop.
Unoptimized:
var r0$689 = Object.prototype.toString;
var r6$690 = '[object Array]';
var r12$691 = arguments[0];
if (r0$689.call(r12$691) === r6$690) {
if (r12$691.length >= 1) {
Optimized:
var r0$689 = Object.prototype.toString;
var r6$690 = '[object Array]';
var r12$691 = arguments[0];
if (r0$689.call(r12$691) === r6$690 && r12.length >= 1) {
Turns out the `r12` context has a different `mark` in the two clauses. When I collapse them, it doesn't get renamed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment