2021-12-05 09:46:09 +03:00
|
|
|
export default function _instanceof(left, right) {
|
2023-03-31 09:15:21 +03:00
|
|
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
|
|
return !!right[Symbol.hasInstance](left);
|
|
|
|
} else {
|
|
|
|
return left instanceof right;
|
|
|
|
}
|
|
|
|
}
|