instanceof Function vs typeof === "function"

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
foo instanceof
foo instanceof Function
ready
typeof foo
typeof foo === "function"
ready

Revisions

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