Skip to main content

findLastActiveMatch

Stentor API Reference


Stentor API Reference / stentor-time/src / findLastActiveMatch

Function: findLastActiveMatch()

findLastActiveMatch<T>(responses, context): LastActive<T> | undefined

Defined in: packages/stentor-time/src/findLastActiveMatch.ts:13

Finds the most relevant contextual match.

Type Parameters​

T​

T extends object

Parameters​

responses​

(T | LastActive<T>)[]

context​

lastActiveTimestamp?​

number

Returns​

LastActive<T> | undefined