The powerful data binding system in MontageJS is built on top of several capabilities: observing changes to data, incrementally updating queries based on data, and storing data in appropriate containers. FRB provides ways to create incrementally updated queries, but ultimately depends on another library for storing data and providing property and content change notifications. MontageJS delegates those responsibilities to the Montage Collections Library, which provides JavaScript implementations of common data structures. The collections provided by the library are all observable, enabling the developer to attach change listeners that react when values are added, removed, or updated.

The Montage Collections Library is a fundamental pillar of the MontageJS data binding system, but you can also use it by itself in your own JavaScript applications. The library’s diverse medley of sets, maps, arrays, and other collections can be used in the browser through Browserify, Mr, or any compatible CommonJS module loader. On the backend, you can take advantage of the provided npm packages to use the library in node.js.

We want to make it easy for you to adopt the library and start using it productively with as little friction as possible. To that end, we are pleased to announce the launch of the new CollectionsJS website, an interactive documentation explorer for the collection library. The site’s features include:

  • A tool that walks you through choosing the right collection for a job
  • A search bar that will take you directly to any collection or method by name
  • Interactive examples for collections and methods
  • Comprehensive cross references

The site itself is on Github. It is our hope that this reference helps make Collections.js an indispensable part of your tool chain.


Leave a Reply

Your email address will not be published. Required fields are marked *