@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
16 lines • 439 B
JavaScript
/**
* @category Internal
*/
export var TypeGuard;
(function (TypeGuard) {
/**
* Checks if the given object is an instance of the indicated class.
*
* @param o the object to be checked.
* @param className the name of the class to check for.
*/
TypeGuard.typeGuard = (o, className) => {
return o instanceof className;
};
})(TypeGuard || (TypeGuard = {}));
//# sourceMappingURL=type-guard.js.map