attributes-kit
Version:
React component for MSON rendering
18 lines (13 loc) • 313 B
JavaScript
import { MissingCacheObjectException } from '../../Exceptions/MissingCacheObject';
function hasDescription(element) {
if (!element) {
return false;
}
if (!element.cache) {
throw new MissingCacheObjectException(element);
}
return element.cache.hasDescription;
}
export {
hasDescription,
};