property check

Benchmark created on


Setup

const obj = { foo: true }
const indirect = 'foo'

Test runner

Ready to run.

Testing in
TestOps/sec
in-syntax
'foo' in obj
ready
Object.hasOwnProperty
Object.hasOwnProperty(obj, 'foo')
ready
indirect in-syntax
indirect in obj
ready

Revisions

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