Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
Chrome 67
Windows 7
Desktop
6 years ago
Test name Executions per second
undefined 2061006.5 Ops/sec
typeof 6699893.5 Ops/sec
in 6200649.5 Ops/sec
hasOwnProperty 5982867.0 Ops/sec
bool 6737733.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool