Need advice about which tool to choose?Ask the StackShare community!
Immutable.js vs Polly.JS: What are the differences?
Developers describe Immutable.js as "Immutable persistent data collections for Javascript which increase efficiency and simplicity, by Facebook". Immutable provides Persistent Immutable List, Stack, Map, OrderedMap, Set, OrderedSet and Record. They are highly efficient on modern JavaScript VMs by using structural sharing via hash maps tries and vector tries as popularized by Clojure and Scala, minimizing the need to copy or cache data. On the other hand, Polly.JS is detailed as "Record, replay, and stub HTTP interactions". Polly.JS is a standalone, framework-agnostic JavaScript library that enables recording, replaying, and stubbing HTTP interactions Polly taps into native browser APIs to mock requests and responses with little to no configuration while giving you the ability to take full control of each request with a simple, powerful, and intuitive API..
Immutable.js and Polly.JS can be primarily classified as "Javascript Utilities & Libraries" tools.
Immutable.js and Polly.JS are both open source tools. It seems that Immutable.js with 27.8K GitHub stars and 1.61K forks on GitHub has more adoption than Polly.JS with 7.75K GitHub stars and 219 GitHub forks.
Pros of Immutable.js
- Immutable data structures8
- Allows you to mimic functional programming5
- Bring the functional experience to JS2
- Makes writing Javascript less scary1
- Easily transpiles to different ES standards1