# utils/dom/indexof

module

<a id="functions">

## Functions

<a id="function-indexOf">

### `indexOf( node ) → number`

Returns index of the node in the parent element.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/dom/indexof.ts#L16)

#### Parameters

* `node: Node`

  Node which index is tested.

#### Returns

* `number`

  Index of the node in the parent element. Returns 0 if node has no parent.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
