Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Chrome 61
Windows
Other
7 years ago
Test name Executions per second
undefined 1728544.4 Ops/sec
typeof 4062517.5 Ops/sec
in 3873152.8 Ops/sec
hasOwnProperty 3985096.8 Ops/sec
truthy 4210638.5 Ops/sec
local undef 2376079.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef


;