includes or strict check

Benchmark created on


Setup

const status = "success";

Test runner

Ready to run.

Testing in
TestOps/sec
normal
if (status === "success" || status === "partial") {
	console.log("jaja");
}
ready
includes
if (["success", "partial"].includes(status)) {
	console.log("jaja");
}
ready

Revisions

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