toMap
Stentor API Reference / stentor-utils/src / toMap
Function: toMap()
toMap\<
T>(intents):object
Defined in: packages/stentor-utils/src/handler.ts:16
Quickly turn an array of Intents and Handlers to a map with the intentIds as the keys.
Type Parameters​
T​
T extends Intent
Parameters​
intents​
T[]
Returns​
object