Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Chrome 101
Windows 7
Desktop
one year ago
Test name Executions per second
undefined 3646463.0 Ops/sec
typeof 10254360.0 Ops/sec
in 10276590.0 Ops/sec
hasOwnProperty 9245765.0 Ops/sec
bool 10203960.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool