+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getPreviousCousin"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## DOMUtil.getPreviousCousin() function
### DOMUtil.getPreviousCousin() function
Signature
```typescript
export declare function getPreviousCousin(node: any, selector: string): any;
```
Import
```typescript
import { DOMUtil } from '@grafana/ui';
const { getPreviousCousin } = DOMUtil;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| node | any
| |
| selector | string
| |
Returns:
`any`