My first concatMap return something like following. I would like to get the value of "d" so the value will be "Rethinkdb"
 [  
       {  
          "a":{  
             "b":{  
                "c":"NoSQL",
                "d":"Rethinkdb"
             }
          }
       },
       {  
          "a":{  
             "b":"text"
          }
       },
       {  
          "a":{  
             "b":"another"
          }
       }
    ]
I tried like r.(...).concatMap(function(f){return f("a")("b")("d")})
But display error RqlRuntimeError: Cannot perform bracket on a non-object non-sequence (This is because in 2nd and 3rd "b" there is no "d"). I cannot use nth because "d" will not be always at first element of array.