Skip to content

Instantly share code, notes, and snippets.

View jennazee's full-sized avatar

Jenna jennazee

View GitHub Profile

I wanted to do not something if the PerformanceTiming object wasn't available, so I started with something like this:

if (!window.performance || !window.performance.timing) {
    return;
}

DeMorgans law says that you can factor out the "not" and then flip the "and" to an "or" or vice versa. So, I was able to switch it to

Keybase proof

I hereby claim:

  • I am jennazee on github.
  • I am jenna (https://keybase.io/jenna) on keybase.
  • I have a public key whose fingerprint is F6EF 4A1B 2567 965A 383C D30F 2EFC 3270 C625 EFD8

To claim this, I am signing this object: