UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

9 lines 498 B
export const defaultDatepickerFunction = (type) => `(date: Date): boolean => { /* The function takes in a Date object, and should return a boolean value. * If the function returns true, the date will be ${type}d. * Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6 * The function below would ${type} every sunday and saturday. */ // return (date.getDay() === 0 || date.getDay() === 6) }`; //# sourceMappingURL=defaultDatepickerFunction.js.map