# array-unique-zjj

> ``` npm install zjj-time ```

Latest version **1.0.0** (published 2022-11-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install array-unique-zjj
pnpm add array-unique-zjj
yarn add array-unique-zjj
bun add array-unique-zjj
```

## 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.0 |
| Published | 2022-11-09 |
| First published | 2022-11-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zhoujiajun |
| Keywords | zjj, unique, array, 数组去重, 基本类型数组去重, 复杂类型数组去重 |

## Links

- npm: https://www.npmjs.com/package/array-unique-zjj
- npm.io page: https://npm.io/package/array-unique-zjj

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-11-09

## README

## 安装
```
  npm install zjj-time
```

## 使用   基本数据类型数组去重
```
  const { unique } = require('./index.js');

  let arr = [1,2,3,1,2,3,4,5];
  console.log(unique(arr)); // [1,2,3,4,5]
```


## 使用   复杂数据类型数组去重
```
  const { unique } = require('./index.js');

  let arr = [
    { name: "张三", id: 1},
    { name: "李四", id: 2},
    { name: "王五", id: 2},
    { name: "赵六", id: 4}
  ]
  console.log(unique(arr, 'id')); // [{ name: "张三", id: 1},{ name: "李四", id: 2},{ name: "赵六", id: 4}]
```

## 对package.json的理解
```
{
  "name": "zjj-time", // 包名
  "version": "1.0.0", // 版本
  "description": "格式化时间", // 包的功能描述
  "main": "index.js", // 被导入时的入口
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [], // 搜索关键字 npm搜什么容易找到这个包
  "author": "",
  "license": "ISC" // 遵循的协议
}
```

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