Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100
Windows
Desktop
2 years ago
Test name Executions per second
undefined 3954940.0 Ops/sec
typeof 10743709.0 Ops/sec
in 10694426.0 Ops/sec
hasOwnProperty 9466755.0 Ops/sec
bool 10725108.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool