Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
Chrome 84
Windows
Desktop
4 years ago
Test name Executions per second
undefined 1230600.6 Ops/sec
typeof 3404938.8 Ops/sec
in 3427924.5 Ops/sec
hasOwnProperty 3113912.8 Ops/sec
bool 3401405.8 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool


;