@deck.gl/react
Version:
React Components for deck.gl
14 lines • 384 B
JavaScript
// deck.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
// Check if one JavaScript class inherits from another
export function inheritsFrom(Type, ParentType) {
while (Type) {
if (Type === ParentType) {
return true;
}
Type = Object.getPrototypeOf(Type);
}
return false;
}
//# sourceMappingURL=inherits-from.js.map