UNPKG

attributes-kit

Version:
18 lines (13 loc) 294 B
import { MissingCacheObjectException } from '../../Exceptions/MissingCacheObject'; function hasSamples(element) { if (!element) { return false; } if (!element.cache) { throw new MissingCacheObjectException(); } return element.cache.hasSamples; } export { hasSamples, };