# has-uuid

> Helper to check if an object has an uuid

Latest version **1.1.0** (published 2017-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-uuid
pnpm add has-uuid
yarn add has-uuid
bun add has-uuid
```

## 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.1.0 |
| Published | 2017-02-26 |
| First published | 2017-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | janneh |
| Maintainers | janneh |

## Links

- npm: https://www.npmjs.com/package/has-uuid
- Repository: https://github.com/janneh/has-uuid
- Homepage: https://github.com/janneh/has-uuid#readme
- Issues: https://github.com/janneh/has-uuid/issues
- npm.io page: https://npm.io/package/has-uuid

## Recent versions

- 1.1.0 (latest) — 2017-02-26
- 1.0.1 — 2017-02-10
- 1.0.0 — 2017-02-10

## README

has-uuid
============

Utility for finding or filtering in array on uuid.

## Install

```sh
$ npm install --save has-uuid
```

## Usage

```js
import hasUuid from "has-uuid"

const collection = [
  { uuid: "03461560-fc25-11e6-bc64-92361f002671" },
  { uuid: "034618e4-fc25-11e6-bc64-92361f002671" },
  { uuid: "03461a74-fc25-11e6-bc64-92361f002671" }
]
const someUuid = "03461560-fc25-11e6-bc64-92361f002671"
const result = collection.find(hasUuid(someUuid))
// same as
const result2 = collection.find(item => item.uuid === someUuid)
```

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