> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Array or object: Join into string (implode)

> Joins array items or object values into a single string using a separator.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Joins the items of a list, or the values of an object, into one piece of text. You choose the separator placed between each item. Use this to turn a list of values into a single readable string, for example combining several size options into one comma-separated label, or joining address lines into a single field.

Only the values are joined; any keys are ignored. The items are placed in the order they appear in the input.

This documentation describes: [Schema](/schemas/mapper/list-implode)

## Fields

<FormField property="glue" label="Glue">
  The text placed between each item when they are joined together. A common choice is a comma and a space (`, `), but you can use any separator that fits your output, such as a single space, a slash, or a line break. Leave it empty to join the items with nothing in between.
</FormField>

## Sample data

| Field | Value |
| ----- | ----- |
| Glue  | `, `  |

Input:

```json theme={null}
{ "sizes": ["S", "M", "L", "XL"] }
```

Output:

```json theme={null}
{ "sizes": "S, M, L, XL" }
```

```json Configuration theme={null}
{
  "prototype": "list-implode",
  "parameters": {
    "glue": ", "
  }
}
```
