diff --git a/packages/shared/objectIs.js b/packages/shared/objectIs.js index 3110e3fa5a9ca..877ec6572682f 100644 --- a/packages/shared/objectIs.js +++ b/packages/shared/objectIs.js @@ -17,4 +17,4 @@ function is(x: any, y: any) { ); } -export default is; +export default (typeof Object.is === 'function' ? Object.is : is);