# left_join

> Simple Left Join written in JavaScript

Latest version **1.0.1** (published 2018-07-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install left_join
pnpm add left_join
yarn add left_join
bun add left_join
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-07-23 |
| First published | 2018-07-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | andersontr15 |

## Links

- npm: https://www.npmjs.com/package/left_join
- Repository: https://github.com/andersontr15/left_join
- Homepage: https://github.com/andersontr15/left_join#readme
- Issues: https://github.com/andersontr15/left_join/issues
- npm.io page: https://npm.io/package/left_join

## Recent versions

- 1.0.1 (latest) — 2018-07-23
- 1.0.0 — 2018-07-23

## README

## Simple Left Join in JavaScript

## Usage
```javascript
  const customers = [
    { id: 1, name: 'Theo' }, 
    { id: 5, name: 'John'}
  ];
  const orders = [
    { customer_id: 1, order_name: 'Pepperoni Pizza', id: 1 }, 
    { customer_id: 10, order_name: 'Pasta Marinara', id: 2}
  ];
  const results = left_join(orders, customers, 'customer_id');
  /* [
    {
      customer_id: 1,
      id: 1,
      name: "Theo",
      order_name: "Pepperoni Pizza"
    },
    {
     customer_id: 10,
     id: 2, 
     order_name: 'Pasta Marinara' 
    }
  ]
 */
 console.table(results)
```
![results via console.table](/Screen%20Shot%202018-07-22%20at%2011.51.02%20AM.png?raw=true)

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