# UtilsAPI
Utility helpers for working with nodes in the Creator API.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## UtilsAPI interface

Utility helpers for working with nodes in the Creator API. Available on `creator.utils`.

**Signature:**

```typescript
interface UtilsAPI
```

## Remarks

Type-guard helpers let you narrow `Layer | Shape` unions safely. Most useful when iterating over `creator.selection.nodes`, which can contain a mix of layers and shapes.

## Methods

<table>
  <thead>
    <tr>
      <th>
        Method
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [isLayer(node)](/en/creator-api/utils-api/is-layer)
      </td>

      <td>
        Type guard that returns `true` when the given node is a [Layer](/en/creator-api/nodes/layer).
      </td>
    </tr>

    <tr>
      <td>
        [isShape(node)](/en/creator-api/utils-api/is-shape)
      </td>

      <td>
        Type guard that returns `true` when the given node is a [Shape](/en/creator-api/nodes/shape).
      </td>
    </tr>
  </tbody>
</table>
