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