Tester le type d'une variable Boolean

Benchmark created by Ben on


Preparation HTML

<script>
  a = true;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Test typeof Boolean
typeof a == "boolean";
ready
Test Boolean
a == Boolean;
ready
Test instanceof Boolean
a instanceof Boolean;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.