foundation-filters.timewindowfilter
Home > @genesislcap/foundation-filters > timeWindowFilter
timeWindowFilter() function
TimeWindow client filter function.
Signature:
export declare function timeWindowFilter(start?: string, end?: string): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
start | string | (Optional) The start of the time window. |
end | string | (Optional) The end of the time window. |
Returns:
boolean
Remarks
This will return true between a certain time window. Start and end can be provided in any format recognized by the Date.parse() method.