UNPKG

@ozen-ui/kit

Version:

React component library

11 lines (10 loc) 492 B
export var isInExclude = function (_a) { var _b, _c; var exclude = _a.exclude, value = _a.value; if (!exclude || !value) { return false; } return (!!(exclude.date && !((_b = exclude.date) === null || _b === void 0 ? void 0 : _b.every(function (date) { return date.getTime() !== value.getTime(); }))) || !!(exclude.day && !((_c = exclude.day) === null || _c === void 0 ? void 0 : _c.every(function (date) { return date !== value.getDay(); })))); };