findTimeContextualMatch
Stentor API Reference / stentor-time/src / findTimeContextualMatch
Function: findTimeContextualMatch()
findTimeContextualMatch<
T>(objects,context?):TimeContextual<T> |undefined
Defined in: packages/stentor-time/src/findTimeContextualMatch.ts:14
Find the best time contextual match from the provided objects.
Type Parametersβ
Tβ
T extends object
Parametersβ
objectsβ
(T | TimeContextual<T>)[]
context?β
lastActiveTimestampβ
number | undefined
Returnsβ
TimeContextual<T> | undefined
Returns the best match or undefined if no match is found.