function assignUniqueKeysToParts(formatXMLElementFn) {
        return function (parts) {
            // eslint-disable-next-line prefer-rest-params
            return formatXMLElementFn(React.Children.toArray(parts));
        };
    }
/**
     * Takes a `formatXMLElementFn`, and composes it in function, which passes
     * argument `parts` through, assigning unique key to each part, to prevent
     * "Each child in a list should have a unique "key"" React error.
     * @param formatXMLElementFn
     */
Takes a `formatXMLElementFn`, and composes it in function, which passes
argument `parts` through, assigning unique key to each part, to prevent
"Each child in a list should have a unique "key"" React error.
Takes a ` formatXMLElementFn ` and composes it in function which passes argument ` parts ` through assigning unique key to each part to prevent " Each child in a list should have a unique " key " " React error .
function assignUniqueKeysToParts(formatXMLElementFn) {
        return function (parts) {
            return formatXMLElementFn(React.Children.toArray(parts));
        };
    }
function assignUniqueKeysToParts ( formatXMLElementFn ) { return function ( parts ) { return formatXMLElementFn ( React . Children . toArray ( parts ) ) ; } ; }
Takes a `formatXMLElementFn`, and composes it in function, which passes
 argument `parts` through, assigning unique key to each part, to prevent
 "Each child in a list should have a unique "key"" React error.
Takes a ` formatXMLElementFn ` and composes it in function which passes argument ` parts ` through assigning unique key to each part to prevent " Each child in a list should have a unique " key " " React error .
// eslint-disable-next-line prefer-rest-params