Working with Sets

Immutable.js sets are used to store unique values. Some libraries have functions or methods to remove duplicate values from lists or arrays. If you want to remove duplicate values from Immutable.js lists, the solution is to convert the collection code into a set. In this chapter, you'll learn do the following:

  • See that sets aren't a substitute for lists
  • Remove duplicates from lists by converting them to sets
  • Use ordered sets to sort sets and iterate over them
  • Maintain sets by adding unique values and preventing duplicates from being added
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.105.108