Skip to content

Commit

Permalink
Map hasOwn to Object.prototype.hasOwnProperty.call
Browse files Browse the repository at this point in the history
To support old targets
  • Loading branch information
iegik committed Feb 27, 2024
1 parent edf79ab commit 000b95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @flow
export let isBrowser = typeof document !== 'undefined'

export const hasOwn = Object.hasOwn
export const hasOwn = Object.prototype.hasOwnProperty.call

0 comments on commit 000b95e

Please sign in to comment.