# extended-set

> Extra utility methods for Set

Latest version **1.0.4** (published 2023-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install extended-set
pnpm add extended-set
yarn add extended-set
bun add extended-set
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-03-03 |
| First published | 2023-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | SilentSwaps |
| Maintainers | leakeddata |
| Keywords | set, utils, javascript |

## Links

- npm: https://www.npmjs.com/package/extended-set
- Repository: https://github.com/SilentSwaps/Set
- Issues: https://github.com/SilentSwaps/Set/issues
- npm.io page: https://npm.io/package/extended-set

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-03-03
- 1.0.3 — 2023-03-03
- 1.0.2 — 2023-03-03
- 0.0.1 — 2023-02-26

## README

# Extended Set

Extended Set is a small package that allows you to pass in an array of values instead of calling `Set.has()` multiple times yourself.

## Usage
`Set.includes()` returns true if all given values are present in the set.
```ts
import "extended-set"

const x = new Set([1, 2, 3, 4])

if(x.includes([1, 3])){ // Will return true because 1 and 3 are in the set.
	// Do something
}
```

`Set.some()` returns true if a single value is present in the set.
```ts
import "extended-set"

const x = new Set([1, 2, 3, 4])

if(x.some([6, 5, 4])) { // Will return true because 4 is in the set.
	// Do something
}
```

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