lib/cortex.js
function get(attr) {
        if (!~attr.indexOf('.')) return this.attributes[attr];

        var result = attr
          , structure = this.attributes;

        for (var paths = attr.split('.'), i = 0, length = paths.length; i < length && structure; i++) {
          result = structure[+paths[i] || paths[i]];
          structure = result;
        }

        return result || this.attributes[attr];
      }
function get(attr) {
        if (!~attr.indexOf('.')) return this.attributes[attr];

        var result = attr
          , structure = this.attributes;

        for (var paths = attr.split('.'), i = 0, length = paths.length; i < length && structure; i++) {
          result = structure[+paths[i] || paths[i]];
          structure = result;
        }

        return result || this.attributes[attr];
      }
function get ( attr ) { if ( ! ~ attr . indexOf ( '.' ) ) return this . attributes [ attr ] ; var result = attr , structure = this . attributes ; for ( var paths = attr . split ( '.' ) , i = 0 , length = paths . length ; i < length && structure ; i ++ ) { result = structure [ + paths [ i ] || paths [ i ] ] ; structure = result ; } return result || this . attributes [ attr ] ; }
Get attributes from the structure

@param {String} attr
@returns {Mixed}
@api public
Get attributes from the structure