Home page
Edit page

ModifiersUtils

ModifiersUtils is a set of functions used to work with modifiers.

Functions

dayMatchesModifier (day: date, modifier: Any) ⇒ boolean

Return true if a date matches the specified modifier.

getModifiersForDay (day: date, modifiersObj: Object) ⇒ Array

Return the modifiers matching the given day for the given object of modifiers.