Skip to main content

determine

Stentor API Reference


Stentor API Reference / stentor-determiner/src / determine

Function: determine()

determine\<P>(potentials, request, context, additionalContext?, macros?): P

Defined in: packages/stentor-determiner/src/determine.ts:47

Determine which of the provided objects is best based on provided request and context.

Type Parameters​

P​

P extends object

Parameters​

potentials​

P[]

request​

Request

context​

Context

additionalContext?​

Record\<string, unknown>

macros?​

MacroMap

Returns​

P

The best match from the provided potential matches, undefined if now match could be determined.