New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fun-map

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fun-map

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

  • 3.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-56.57%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

FAQs

Package last updated on 18 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc