Converting Immutable.js Structures to Javascript and other Immutable Types

InstructorJ.S. Leonard

Share this video with your friends

Send Tweet

Immutable.js provides several conversion methods to migrate one structure to another. Each Immutable.js class contains a prefixed "to" method like Map.toList(), Map.toSet(), etc. Converting these types sometimes results in a loss of data, as we will see when converting from Map to List.