HTML Preparation code:
Tests:
  • undefined !== nullObject[key]

  • "undefined" !== typeof nullObject[key]

  • key in nullObject

  • !!nullObject[key]

  • Object.hasOwn(nullObject, key)

  • Object.prototype.hasOwnProperty.call(nullObject, key)

  • Object.hasOwn(normalObject, key)

  • normalObject.hasOwnProperty(key)

  • map.has(key)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    undefined !== nullObject[key]
    "undefined" !== typeof nullObject[key]
    key in nullObject
    !!nullObject[key]
    Object.hasOwn(nullObject, key)
    Object.prototype.hasOwnProperty.call(nullObject, key)
    Object.hasOwn(normalObject, key)
    normalObject.hasOwnProperty(key)
    map.has(key)

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!