Frontmatter
| id | 3130 |
| title | Object.hasOwn() |
| state | Closed |
| labels | enhancementstale |
| assignees | tobiu |
| createdAt | Jun 7, 2022, 11:28 AM |
| updatedAt | Sep 15, 2024, 4:35 AM |
| githubUrl | https://github.com/neomjs/neo/issues/3130 |
| author | tobiu |
| commentsCount | 3 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 15, 2024, 4:35 AM |
Object.hasOwn()
tobiu assigned to @tobiu on Jun 7, 2022, 11:28 AM

tobiu
Jun 7, 2022, 11:31 AM
well, actually it is not true for the bundle size, since we can call hasOwnProperty() directly on objects, while hasOwn() has to get called on Object. still, we should do it.
@github-actions - 2024-08-31T02:25:54Z
This issue is stale because it has been open for 90 days with no activity.
- 2024-08-31T02:25:54Z @github-actions added the
stalelabel
@github-actions - 2024-09-15T02:35:54Z
This issue was closed because it has been inactive for 14 days since being marked as stale.
- 2024-09-15T02:35:54Z @github-actions closed this issue
I kind of missed this one :)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn
we can now replace all occurrences of
Object.hasOwnProperty()withhasOwn().MDN recommends to do so, the bundle sizes get a bit smaller and the browser and nodejs support is decent.