Double bang vs boolean

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Double bang
const value = 'value'

const result = !!value
ready
Boolean
const value = 'value'

const result = Boolean(value)
ready

Revisions

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