# @webreflection/mapset

> Map and WeakMap that returns value on .set(...)

Latest version **1.0.1** (published 2021-06-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @webreflection/mapset
pnpm add @webreflection/mapset
yarn add @webreflection/mapset
bun add @webreflection/mapset
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-06-30 |
| First published | 2021-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Andrea Giammarchi |
| Maintainers | webreflection |
| Keywords | Map, WeakMap, set |

## Links

- npm: https://www.npmjs.com/package/@webreflection/mapset
- Repository: https://github.com/WebReflection/mapset
- Homepage: https://github.com/WebReflection/mapset#readme
- Issues: https://github.com/WebReflection/mapset/issues
- npm.io page: https://npm.io/package/@webreflection/mapset

## 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.1 (latest) — 2021-06-30
- 1.0.0 — 2021-06-30
- 0.0.0 — 2021-06-30

## README

# mapset

[![Build Status](https://travis-ci.com/WebReflection/mapset.svg?branch=main)](https://travis-ci.com/WebReflection/mapset) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/mapset/badge.svg?branch=main)](https://coveralls.io/github/WebReflection/mapset?branch=main)

`Map` and `WeakMap` that returns value on `.set(...)`.

```js
import {MapSet, WeakMapSet} from '@webreflection/mapset';

const map = new MapSet;

map.get('any') || map.set('any', 'value');
// "value"
```

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