# UUID

## Overview

The `UUID` object provides utilities for working with universally unique identifiers (UUIDs). It supports operations to retrieve the byte array or string representation of a UUID.

## Methods Summarized

| Type                                                                         | Name                    | Summary                                        |
| ---------------------------------------------------------------------------- | ----------------------- | ---------------------------------------------- |
| [Array](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/array)   | [toBytes()](#tobytes)   | Get the byte array representation of the UUID. |
| [String](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/string) | [toString()](#tostring) | Get the string representation of the UUID.     |

## Methods Detailed

### toBytes()

Get the byte array representation of the UUID.

**Returns:** [Array](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/array) the byte array representation of the UUID.

**Sample**

```js
uuid.toBytes();
```

### toString()

Get the string representation of the UUID.

**Returns:** [String](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/string) the string representation of the UUID.

**Sample**

```js
uuid.toString();
```

***
