toArray()
toArray(
v
:any
,__namedParameters
: {retainEmptyStrings
:boolean
; }):any
[]
Splits a string by comma then trims each element. Arrays are returned as is except any string elements are trimmed.
Parameters
Parameter | Type |
---|---|
v | any |
__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.