src/basis/tracker.js
function parsePath(value){
  if (!Array.isArray(value))
    value = String(value || '').trim().split(/\s+/);

  return value.map(function(part){
    if (typeof part == 'string')
      return parseRole(part);

    return part || {
      role: '',
      roleId: '',
      subrole: ''
    };
  });
}
function parsePath(value){
  if (!Array.isArray(value))
    value = String(value || '').trim().split(/\s+/);

  return value.map(function(part){
    if (typeof part == 'string')
      return parseRole(part);

    return part || {
      role: '',
      roleId: '',
      subrole: ''
    };
  });
}
function parsePath ( value ) { if ( ! Array . isArray ( value ) ) value = String ( value || '' ) . trim ( ) . split ( / \s+ / ) ; return value . map ( function ( part ) { if ( typeof part == 'string' ) return parseRole ( part ) ; return part || { role : '' , roleId : '' , subrole : '' } ; } ) ; }
Parses a string or a list to a list of role objects.
Private except for tests.
@param {string|Array.<string>} value
@return {Array.<RoleObject>}
Parses a string or a list to a list of role objects . Private except for tests .