Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
expose modifier utility function to consumer #309
Great library, by the way.
I'm working on a project that needs to validate dates based on these modifiers (user can either type into a text box, or use the react-day-picker). It would be nice if I could import a function that lets me validate if a react-day-picker modifier applies to a given date.
This is one proposal here - it doesn't add very much code, just shrinks the Helpers.js and splits up getModifiersForDay into two functions.
(I meant "few hours" as here in Peru, where it means days later
Actually I was in the middle of moving to CircleCI, and I've had to add the docs (see here).
The utilities are published in v5.4.0, please note that the file is called
Please report back if something is not working as expected, thanks!