I'm considering introducing Immutable JS in an existing React project. The project is littered with deeply nested references, wrapped with the selectn utility.
For example:
// returns order.id or undefined if product or order or id are undefined
if(selectn('product.order.id',this.state)) {
//...
}
Is there an Immutable JS API method to check a deeply nested structure, and return either the requested property or undefined?