normalizeConstituentWordOrder()
normalizeConstituentWordOrder(
input
:string
):ConstituentWordOrder
Defined in: packages/react-querybuilder/src/utils/formatQuery/utils.ts:237
Given a Constituent word order
like "svo" or "sov", returns a permutation of ["S", "V", "O"]
based on the first occurrence of
each letter in the input string (case insensitive). This widens the valid input from abbreviations
like "svo" to more expressive strings like "subject-verb-object" or "sub ver obj". Any missing
letters are appended in the default order "SVO" (e.g., "object" would yield ["O", "S", "V"]
).
Parameters
Parameter | Type |
---|---|
input | string |
Returns
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.