UNPKG

di-controls

Version:
24 lines (18 loc) 692 B
import { isSignal } from '@angular/core'; function isPresent(value) { return value !== undefined && value !== null && (typeof value !== 'string' || value !== ''); } function hasValue(value) { return (isPresent(value) && ((Array.isArray(value) && !!value.length) || (typeof value === 'string' && !!value.length) || (!['string'].includes(typeof value) && !Array.isArray(value)))); } function resolveValue(variableOnSignal) { return isSignal(variableOnSignal) ? variableOnSignal() : variableOnSignal; } /** * Generated bundle index. Do not edit. */ export { hasValue, isPresent, resolveValue }; //# sourceMappingURL=di-controls-helpers.mjs.map