Optimize objectIs (#16212)

This commit is contained in:
Kuba Juszczyk 2019-09-17 23:55:43 +02:00 committed by Dominic Gannaway
parent d1c2555861
commit d862f0ea56
1 changed files with 1 additions and 1 deletions

View File

@ -17,4 +17,4 @@ function is(x: any, y: any) {
);
}
export default is;
export default (typeof Object.is === 'function' ? Object.is : is);