immutable js - fromJS: dealing with file upload (array of file Object) seems like not possible to convert as immutable
fromJS
does great job even with nested structures like:
javascript
const nested = [ { id: 1, val1: '1, other: { id: 1, prop1: '0' } }, true ];
BUT
As long as an object is
String(MyObject)
=[object Object]
fromJS
will convert it asMap()
.But when object is a file
String(MyFileObject)
=[object File]
,fromJS
will leave it[object File]