UNPKG

pig-dam-core

Version:

Library that should be included in every Pig DAM project we build

18 lines (17 loc) 376 B
"use strict"; /** * Date: 3/5/2018 * Time: 9:10 PM * */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getTypeName = void 0; /** * Gets the object name if possible. If not then the type. */ function getTypeName(object) { return (object == null) ? String(object) : object.constructor.name; } exports.getTypeName = getTypeName;