mirror of
https://github.com/analyticsjs/vue-baidu-analytics.git
synced 2025-05-02 17:36:35 +08:00
7 lines
232 B
JavaScript
7 lines
232 B
JavaScript
export default function _instanceof(left, right) {
|
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
return !!right[Symbol.hasInstance](left);
|
|
} else {
|
|
return left instanceof right;
|
|
}
|
|
} |