const { fromJS } = require('immutable'); const nested = fromJS({ a: { b: { c: [ 3, 4, 5 ] } } }); console.log(nested2.getIn([ 'a', 'b', 'd' ])); // 6