@try-at-software/input-elements
Version:
A package providing different input elements that are extensible and easily configurable for your custom needs.
15 lines (14 loc) • 381 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZeroIsValidComparator = void 0;
class ZeroIsValidComparator {
/** @inheritDoc */
areEqual(a, b) {
return a === b;
}
/** @inheritDoc */
isValid(value) {
return !!value || value === 0;
}
}
exports.ZeroIsValidComparator = ZeroIsValidComparator;