# use-jjc

> Learn from jjc technology bosses !

Latest version **2.0.2** (published 2021-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-jjc
pnpm add use-jjc
yarn add use-jjc
bun add use-jjc
```

## 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 | 2.0.2 |
| Published | 2021-08-06 |
| First published | 2021-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | sifu |
| Maintainers | wusifu |
| Keywords | usejjc |

## Links

- npm: https://www.npmjs.com/package/use-jjc
- Repository: https://github.com/gitsifu/usejjc
- Homepage: https://github.com/gitsifu/usejjc#readme
- Issues: https://github.com/gitsifu/usejjc/issues
- npm.io page: https://npm.io/package/use-jjc

## Recent versions

- 2.0.2 (latest) — 2021-08-06
- 2.0.1 — 2021-08-06
- 2.0.0 — 2021-08-06
- 1.0.0 — 2021-07-29

## README

# useJjc

`向jjc大佬学习`

## 开始

```
npm install --save use-jjc
```

## 使用

```javascript
import {mergeArr} from "use-jjc";
// or
// import useJjc from "use-jjc"

const arr1 = [
  {label: 'a', value: '1'},
  {label: 'b', value: '1'},
  {label: 'c', value: '1'}
]

const arr2 = [
  {label: 'a', value: '0'},
  {label: 'b', value: '0'},
  {label: 'd', value: '0'},
  {label: 'e', value: '0'}
]

const output = mergeArr(arr1, arr2, 'label')
// or
// const output = useJjc.mergeArr(arr1, arr2, 'label')
console.log(output)
// output: 
// [
//     {label: 'a', value: '1'},
//     {label: 'b', value: '1'},
//     {label: 'd', value: '0'},
//     {label: 'e', value: '0'}
// ]
```

## API

- `mergeArr` 合并数组
- `daysToDate` 天数转几年几月几日

参数：`days` 天数

返回值：
```
{
    year: 0,
    month: 0,
    day: 0,
}
```

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