Object.hasOwn vs Object.prototype.hasOwnPropertyFastest: Object.prototype.hasOwnProperty (1.6x faster)
22 ops/sec
13 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object.hasOwn | |
| Object.prototype.hasOwnProperty |
| Test name | Executions per second |
|---|---|
| ✓ Object.prototype.hasOwnProperty | 6 Ops/sec |
| Object.hasOwn | 5 Ops/sec |