Using fromJS() to Convert Plain JavaScript Objects into Immutable Data

InstructorJ.S. Leonard

Share this video with your friends

Send Tweet

Immutable.js offers the fromJS() method to build immutable structures from objects and array. Objects are converted into maps. Arrays are converted into lists. The fromJS() method can also take a reviver function for custom conversions.