# CloneAttribute

No mapper:

```typescript
const param = "example";

const example = await this.examplesRepository.findBy(
  { 
    where: [
      { id: param },
      { name: param },
      { description: param },
    ]
  },
  trx,
);

// Find where id = "example" OR name = "example" OR description = "example"
```

Using mapper:

```typescript
import { cloneAttribute } from "@utils/mappers";

const param = "example";

const example = await this.examplesRepository.findBy(
  {
    where: cloneAttribute<Example>(param, ['id', 'name', 'description']),
  },
  trx,
);

// Find where id = "example" OR name = "example" OR description = "example"
```

***
