Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Safari/537.36
Chrome 88
Mac OS X 11.2.1
Desktop
3 years ago
Test name Executions per second
undefined 4607147.0 Ops/sec
typeof 14202780.0 Ops/sec
in 13490190.0 Ops/sec
hasOwnProperty 12321400.0 Ops/sec
truthy 14261660.0 Ops/sec
local undef 7408140.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef