UNPKG

@itwin/appui-abstract

Version:
29 lines 1.16 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module Utilities */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getClassName = void 0; /** Gets the class name for an object. * @internal * @deprecated in 4.3 - will not be removed until after 2026-06-13. Please use your own implementation in the future. Though internal, this requires deprecation due to known public usage in @itwin/core-react. */ const getClassName = (obj) => { let className = ""; if (obj) { if (obj.name) className = obj.name; else { // istanbul ignore else if (obj.constructor && obj.constructor.name) className = obj.constructor.name; } } return className; }; exports.getClassName = getClassName; //# sourceMappingURL=misc.js.map