Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Chrome 62
Windows 7
Other
7 years ago
Test name Executions per second
undefined 2601224.5 Ops/sec
typeof 6551241.0 Ops/sec
in 6191874.5 Ops/sec
hasOwnProperty 5146943.5 Ops/sec
bool 6580625.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool