toEnums

Function

Converts an array of strings to an array of enum values

strings not in the enum will be returned as the original string

  • toEnums(values: string[], enumType: ) : Array<>

Parameters

Parameter Type Default Notes
values Required string[]
enumType Required

Returns

Array<>

Function defined in common/src/search/_internal/hubEventsHelpers/toEnumConverters.ts:20