Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Chrome 66
Windows 8.1
Other
6 years ago
Test name Executions per second
undefined 725231.2 Ops/sec
typeof 2001299.9 Ops/sec
in 1919664.6 Ops/sec
hasOwnProperty 1806288.8 Ops/sec
bool 2141399.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool


;