@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
29 lines (27 loc) • 572 B
JavaScript
// src/components/select/utility.ts
var isAllowedValue = (value) => {
if (Array.isArray(value)) {
return value.length > 0;
}
if (typeof value === "string") {
return value.length > 0;
}
if (typeof value === "number") {
return true;
}
return !!value;
};
var compareValues = (a, b) => {
if (Array.isArray(a) && Array.isArray(b)) {
if (a.length !== b.length) {
return false;
}
return a.every((v, i) => v === b[i]);
}
return a === b;
};
export {
isAllowedValue,
compareValues
};
//# sourceMappingURL=chunk.VECCQZP5.js.map