UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

21 lines (20 loc) 645 B
/*! * KoliBri - The accessible HTML-Standard */ export const isObject = (value) => typeof value === 'object' && value !== null; export const isString = (value, minLength = 0) => typeof value === 'string' && value.length >= minLength; export const isStyle = (style) => { if (typeof style === 'object' && style !== null) { for (const property in style) { if (isString(property, 1) === false) { return false; } } } else { return isString(style, 1); } return true; }; export const STATE_CHANGE_EVENT = new Event('StateChange'); //# sourceMappingURL=common.js.map