Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Windows
Desktop
2 years ago
Test name Executions per second
undefined 3668440.8 Ops/sec
typeof 8979362.0 Ops/sec
in 9646887.0 Ops/sec
hasOwnProperty 8092688.5 Ops/sec
bool 9030926.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool