@livy/util
Version:
Common utilities for the Livy logger
15 lines (14 loc) • 431 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isResettableInterface = void 0;
/**
* Check whether a value implements the ResettableInterface
*
* @param value The value to check
*/
function isResettableInterface(value) {
return (typeof value === 'object' &&
value !== null &&
typeof value.reset === 'function');
}
exports.isResettableInterface = isResettableInterface;