When working with plain JavaScript objects it\'s easy to change a deeply nested object property:
people.Thomas.nickname = \"Mr. T\";
But wi
Maps in Immutable have a setIn method that makes it easy to set deep values:
peopleImmutable = peopleImmutable.setIn(["Thomas", "nickname"], "Mr. T");
Or, using split to generate the array:
split
peopleImmutable = peopleImmutable.setIn("Thomas.nickname".split("."), "Mr. T");