Skip to main content

toArray()

toArray(v, __namedParameters): any[]

Splits a string by comma then trims each element. Arrays are returned as is except any string elements are trimmed.

Parameters

ParameterType
vany
__namedParameters{ retainEmptyStrings: boolean; }
__namedParameters.retainEmptyStrings?boolean

Returns

any[]

Defined in

packages/react-querybuilder/src/utils/arrayUtils.ts:55


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.