Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36
Chrome 72
Mac OS X 10.12.4
Desktop
5 years ago
Test name Executions per second
undefined 3688331.0 Ops/sec
typeof 12227022.0 Ops/sec
in 10995358.0 Ops/sec
hasOwnProperty 10875644.0 Ops/sec
bool 12249247.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool