Key check

Benchmark created on


Setup

const target = {
	foo: "bar",
	baz: "bonk"
};


const key = "foo";

Test runner

Ready to run.

Testing in
TestOps/sec
in operator
key in target;
ready
Reflect
Reflect.has(target, key);
ready
hasOwn
Object.hasOwn(target, key);
ready

Revisions

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