@bredele/reconcile
Version:
Reconcile data from multiple async sources.
23 lines (16 loc) • 426 B
Markdown
Reconcile data from multiple async sources.
```sh
npm install @bredele/reconcile
```
```ts
import reconcile from '@bredele/reconcile';
const output = await reconcile([
() => ({ name: 'jane', age: null }),
() => ({ name: 'john', city: 'toronto' }),
() => ({ city: 'paris', gender: 'female', age: 29 }),
]);
// => { name: 'jane', age: 29, city: 'toronto', gender: 'female' }
```