From 000b95eea0af59579b5f520360da3c139f8e7cd1 Mon Sep 17 00:00:00 2001 From: Arturs Jansons Date: Tue, 27 Feb 2024 15:35:20 +0300 Subject: [PATCH] Map hasOwn to Object.prototype.hasOwnProperty.call To support old targets --- packages/react/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/utils.js b/packages/react/src/utils.js index 5e6260730e..96d0928afc 100644 --- a/packages/react/src/utils.js +++ b/packages/react/src/utils.js @@ -1,4 +1,4 @@ // @flow export let isBrowser = typeof document !== 'undefined' -export const hasOwn = Object.hasOwn +export const hasOwn = Object.prototype.hasOwnProperty.call