Run details:
Mozilla/5.0 (iPad; CPU OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/115.0.5790.160 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 115
iOS 16.6
Tablet
one year ago
Test name Executions per second
typeof 10547527.0 Ops/sec
strict equal undefined 3621216.0 Ops/sec
equal null 5291732.5 Ops/sec
Tests:
  • typeof

    AخA
     
    var foo = undefined;
    typeof foo === "undefined";
  • strict equal undefined

     
    var foo = undefined;
    foo === undefined
  • equal null

     
    var foo = undefined;
    foo == null