UNPKG

@synergy-design-system/components

Version:
29 lines (27 loc) 572 B
// 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