Immutable JS data structures which are backwards-compatible with normal Arrays and Objects. Use them in for loops, pass them to functions expecting vanilla JavaScript data structures, etc. Whenever you deeply clone large nested objects, it should typically go much faster with Immutable data structures. This is because the library reuses the existing nested objects rather than instantiating new ones. In the development build, objects are frozen. The development build also overrides unsupported methods (methods that ordinarily mutate the underlying data structure) to throw helpful exceptions. We generally recommend to use the "development" build that enforces immutability (and this is the default in Node.js). Only switch to the production build when you encounter performance problems. By popular demand, functions, errors, dates, and React components are treated as immutable even though technically they can be mutated.

Features

  • Immutable returns a backwards-compatible immutable representation of whatever you pass it
  • Seamless-immutable supports both static and instance syntaxes
  • Multiple keys can be provided, either in an Array or as extra arguments
  • Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects
  • Use them in for loops, pass them to functions expecting vanilla JavaScript data structures, etc.
  • Whenever you deeply clone large nested objects, it should typically go much faster with Immutable data structures

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

BSD License

Follow seamless-immutable

seamless-immutable Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of seamless-immutable!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2021-10-08