title: How to get last property value in JS Object
body: <p>Here each time users selects some option, the node object is added and the state, I need the state of a last node object to post</p>
  
  <pre><code>var breadCrumb = [{
        breadCrumbN: {
            node: {
              state: "test",
              node: {
                state: "test^test2",
                node: {
                  state: "test^test2^test3",
                  node: {
                   state: "test^test2^test3^test4" // like to post the last state. the node object will be added for each selection
                  }
                }
              }
            }
          }
      }]
  </code></pre>