OR vs if — compare results

JavaScript performance comparison