Mori brings ClojureScript's efficient persistent data structures and functional APIs into vanilla JavaScript, enabling immutability and functional programming patterns with performant collections in JS. The installed package contains a single optimized JavaScript file mori.js. Load mori in your Node.js programs as you would any other module. For vectors and maps we provide efficient thaw and freeze operations. All Mori maps and sets support all the non-mutating methods of the proposed ES6 Map and Set interfaces. The main difference with the spec is that key lookup is based on value not reference. keys, values, and entries methods return the proposed mutable iterators.
Features
- Immutable data structures in JavaScript without deep copying
- Functional API mirroring ClojureScript collection operations
- Support for ES6-style iteration protocols
- Value-based equality for reliable comparisons
- High-performance implementation, often faster than alternatives like Immutable.js
- Lightweight and JS-friendly naming conventions for ease of use
Categories
FrameworksLicense
MIT LicenseFollow Mori
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Mori!