Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Chrome 86
Windows
Desktop
3 years ago
Test name Executions per second
undefined 3011117.8 Ops/sec
typeof 7619536.0 Ops/sec
in 8325079.0 Ops/sec
hasOwnProperty 7557185.5 Ops/sec
bool 8199198.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool