> For the complete documentation index, see [llms.txt](https://alessandroadm.gitbook.io/types-ddd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alessandroadm.gitbook.io/types-ddd/result/combine.md).

# combine

You must have wondered if you have a chain of results, how to validate all. For that there is the "combine". It receives an array of Result and validate all returning a new one.

```typescript
const resultA = Result.success<void>();
const resultB = Result.fail<void>("this is error B");
const resultC = Result.ok<number>(1);

const isSomeFail = Result.combine([resultA, resultB, resultC])

console.log(isSomeFail.isFailure);
> true
```
