Skip to main content

Function: selectAnswersByQuestionCode()

function selectAnswersByQuestionCode(state, ...params): IAnswer[]

Returns answers that matches the requested question code or question code regex from any question set

Parameters​

state​

The first argument, often a Redux root state object.

params​

...[string | RegExp]

All additional arguments passed into the selector.

Returns​

IAnswer[]

A derived value from the state.

Param​

The BpSdk Redux store

Param​

Question code or question code regex