# outer-join-by

> Outer join two arrays of object by a key, and return a correct typed array of objects

Latest version **1.1.4** (published 2022-07-03) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install outer-join-by
pnpm add outer-join-by
yarn add outer-join-by
bun add outer-join-by
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2022-07-03 |
| First published | 2022-06-14 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 38.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Snowstar Miao |
| Maintainers | snomiao |
| Keywords | aoj, join, typescript |

## Links

- npm: https://www.npmjs.com/package/outer-join-by
- Repository: https://github.com/snomiao/js.git#master
- Homepage: https://github.com/snomiao/js/tree/master/packages/outer-join-by#readme
- Issues: https://github.com/snomiao/js/issues?q=is%3Aissue+is%3Aopen+outer-join-by
- npm.io page: https://npm.io/package/outer-join-by

## Dependencies (1)

- [data-forge](https://npm.io/package/data-forge.md) ^1.9.5

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2022-07-03
- 1.0.0 — 2022-06-14

## README

# outer-join-by

Outer join two arrays of object by a key, and return a correct typed array of objects.

## Usage

```typescript
import { deepStrictEqual } from "assert";
import outerJoinBy from ".";

it("join by name", () => {
  const subscribers = [
    { email: "snomiao@gmail.com", name: "snomiao", joinAt: +new Date("2022-06-14T02:56:57.749Z") },
  ];
  const likes = [{ name: "snomiao", like: ["coding", "reading", "parkour"] }];
  const expected = [
    {
      email: "snomiao@gmail.com",
      name: "snomiao",
      like: ["coding", "reading", "parkour"],
      joinAt: +new Date("2022-06-14T02:56:57.749Z"),
    },
  ];
  const result = outerJoinBy("name", subscribers, likes);
  deepStrictEqual(result, expected);
});
```

## About

### License

GPLv3 - [The GNU General Public License v3.0 - GNU Project - Free Software Foundation](https://www.gnu.org/licenses/gpl-3.0.en.html)

### Author

Author: snomiao <snomiao@gmail.com>
Website: [snomiao.com](https://snomiao.com)

### Sponsors

- None yet.

Claim your sponsorship by donating snomiao <[Email: snomiao@gmail.com](mailto:snomiao@gmail.com)>

### Contribute

The main repo is in [here](https://github.com/snomiao/js#readme), any issue and PR's welcome.

---
_Source: https://npm.io/package/outer-join-by · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
