I wonder if there is a way to convert an object using seamless-immutable where the resultant immutable's array properties are also immutable, currently
a = {hey: [1,2,3], ho: {hi:'there'}}
ia = Immutable(a)
ia // immutable
ia.hey // not immutable
ia.ho //immutable
what I want is ia.hey, an array, being immutable as well, does anyone know how ?
Unless I'm misunderstanding your question, you can accomplish what you're asking about by using seamless-immutable in development mode. See here:
https://github.com/rtfeldman/seamless-immutable#performance
As it notes, this comes with a performance penalty (which is actually quite significant, but most likely not relevant in most scenarios).
See this JSFiddle: https://jsfiddle.net/pvqzh9yj/