Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.214 Safari/537.36
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
undefined 1560032.8 Ops/sec
typeof 4729326.5 Ops/sec
in 4747017.0 Ops/sec
hasOwnProperty 4220052.0 Ops/sec
bool 4741141.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool