check boolean

Benchmark created on


Setup

const vals = [{}, [], null, '', 1, true]

Test runner

Ready to run.

Testing in
TestOps/sec
typeof
vals.map(obj => typeof obj === 'boolean')
ready
true || false
vals.map(obj => obj === true || obj === false)
ready

Revisions

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