# @evio/intersect

> 区别2个数组的新增、相同、删除部分

Latest version **1.0.4** (published 2018-09-29) · 0 weekly downloads

## Install

```sh
npm install @evio/intersect
pnpm add @evio/intersect
yarn add @evio/intersect
bun add @evio/intersect
```

## 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.4 |
| Published | 2018-09-29 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | evio |

## Links

- npm: https://www.npmjs.com/package/@evio/intersect
- Repository: https://github.com/cevio/intersect
- Homepage: https://github.com/cevio/intersect#readme
- Issues: https://github.com/cevio/intersect/issues
- npm.io page: https://npm.io/package/@evio/intersect

## Recent versions

- 1.0.4 (latest) — 2018-09-29
- 1.0.3 — 2018-09-29
- 1.0.2 — 2018-06-14
- 1.0.1 — 2018-06-14
- 1.0.0 — 2018-01-24

## README

# intersect

区别2个数组的新增、相同、删除部分

# Usage

```bash
npm install --save @evio/intersect
```

# Run it

```javascript
const intersect = require('@evio/intersect');
const a = [1,2,3,4];
const b = [2,3,6,7];
const result = intersect(a, b);
```

从数组`a`到数组`b`的变化结果：

```javascript
{
  removes: [1,4],
  commons: [2,3],
  adds: [6,7]
}
```

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