Skip to main content

findSystemDependentMatch

Stentor API Reference


Stentor API Reference / stentor-request/src / findSystemDependentMatch

Function: findSystemDependentMatch()

findSystemDependentMatch<T>(objects, request): SystemDependable<T> | undefined

Defined in: packages/stentor-request/src/findSystemDependentMatch.ts:21

Based on the provided request, it finds the slot dependent object that is a match.

Type Parameters​

T​

T extends object

Parameters​

objects​

(T | SystemDependable<T>)[]

Objects to check against the request

request​

Request

Request that the objects will be tested against

Returns​

SystemDependable<T> | undefined

The matched object or undefined if no match was found.