# fun-map

> a few functional utilities for pretending that JS objects are Clojure string maps.

Latest version **3.3.1** (published 2014-06-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install fun-map
pnpm add fun-map
yarn add fun-map
bun add fun-map
```

## Health

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

Warnings: low downloads; no types; no esm support; has vulnerabilities.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.3.1 |
| Published | 2014-06-18 |
| First published | 2014-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 1 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nathan Zadoks |
| Maintainers | nathan7 |
| Keywords | clojure, functional, object, utilities |

## Links

- npm: https://www.npmjs.com/package/fun-map
- Repository: https://github.com/nathan7/fun-map
- Issues: https://github.com/nathan7/fun-map/issues
- npm.io page: https://npm.io/package/fun-map

## Recent versions

- 3.3.1 (latest) — 2014-06-18
- 3.3.0 — 2014-06-05
- 3.2.1 — 2014-06-05
- 3.2.0 — 2014-06-05
- 3.1.1 — 2014-06-05
- 3.1.0 — 2014-06-05
- 3.0.1 — 2014-06-05
- 3.0.0 — 2014-04-14
- 2.0.1 — 2014-04-14
- 2.0.0 — 2014-04-11
- 1.0.0 — 2014-04-11

## README

# fun-map

  functional utilities for pretending that JS objects are Clojure string maps.
  like Clojure's impure operations on transients, there are a few mutating functions available with `M` as postfix (for DANGEROUS MUTABLE STUFF, obviously)
  this is partially an experiment in how much Clojure I can bring to JS.

## hashmap(…keyvals)
## get(obj, key)
## getIn(obj, keys)
## assoc(obj, key, value, …keyvals)
## assocIn(obj, keys, value)
## dissoc(obj, key, …keys)
## merge(obj, …objs)
## zipmap(keys, values)
## selectKeys(obj, keys)
## keys(obj)
## vals(obj)
## keyvals(obj)

## DANGEROUS IMPURE THINGS
### assocM(obj, key, value, …keyvals)
### assocInM(obj, keys, value)
### dissocM(obj, key, …keys)
### mergeM(obj, …objs)

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