src/services/state-router.js
function(name) {
    var nameList = name.split('.');

    return nameList
      .map(function(item, i, list) {
        return list.slice(0, i+1).join('.');
      })
      .filter(function(item) {
        return item !== null;
      });
  }
function(name) {
    var nameList = name.split('.');

    return nameList
      .map(function(item, i, list) {
        return list.slice(0, i+1).join('.');
      })
      .filter(function(item) {
        return item !== null;
      });
  }
function ( name ) { var nameList = name . split ( '.' ) ; return nameList . map ( function ( item , i , list ) { return list . slice ( 0 , i + 1 ) . join ( '.' ) ; } ) . filter ( function ( item ) { return item !== null ; } ) ; }
Get a list of parent states

@param  {String} name   A unique identifier for the state; using dot-notation
@return {Array}         An Array of parent states
Get a list of parent states