chatty-pub/node_modules/@babel/runtime/helpers/esm/instanceof.js
كارل مبارك 374620645c initial commit
2021-06-26 13:12:56 +02:00

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;
}
}