Home > @uniformdev/mesh-sdk-react > variablesToList

variablesToList() function

Converts variable definitions stored in a map into a flat list, respecting their order property if set, and sorting by display name otherwise.

Signature:

declare function variablesToList(variables: Record<string, MeshDataVariableDefinition> | undefined): Array<DataVariableDefinitionWithName>;

Parameters

ParameterTypeDescription
variablesRecord<string, MeshDataVariableDefinition> | undefined

Returns:

Array<DataVariableDefinitionWithName>