> For the complete documentation index, see [llms.txt](https://cross-packages.gitbook.io/cross-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cross-packages.gitbook.io/cross-api/mappers/clone-attribute.md).

# 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"
```

***
