Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36
Chrome 66
Windows
Desktop
5 years ago
Test name Executions per second
undefined 3167195.0 Ops/sec
typeof 10193580.0 Ops/sec
in 9533151.0 Ops/sec
hasOwnProperty 9518492.0 Ops/sec
bool 10479410.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool