Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.106 Safari/537.36
Chrome 66
Windows 8.1
Other
6 years ago
Test name Executions per second
undefined 944161.9 Ops/sec
typeof 2845563.8 Ops/sec
in 2639724.8 Ops/sec
hasOwnProperty 2487447.5 Ops/sec
bool 2895396.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool