lib/Models/CatalogMember.js
function getParentIds(catalogMember, parentIds) {
  parentIds = defaultValue(parentIds, []);

  if (defined(catalogMember.parent)) {
    return getParentIds(
      catalogMember.parent,
      parentIds.concat([catalogMember.uniqueId])
    );
  }

  return parentIds;
}
function getParentIds(catalogMember, parentIds) {
  parentIds = defaultValue(parentIds, []);

  if (defined(catalogMember.parent)) {
    return getParentIds(
      catalogMember.parent,
      parentIds.concat([catalogMember.uniqueId])
    );
  }

  return parentIds;
}
function getParentIds ( catalogMember , parentIds ) { parentIds = defaultValue ( parentIds , [ ] ) ; if ( defined ( catalogMember . parent ) ) { return getParentIds ( catalogMember . parent , parentIds . concat ( [ catalogMember . uniqueId ] ) ) ; } return parentIds ; }
Gets the ids of all parents of a catalog member, ordered from the closest descendant to the most distant. Ignores
the root.
@private
@param catalogMember The catalog member to get parent ids for.
@param parentIds A starting list of parent ids to add to (allows the function to work recursively).
@returns {String[]}
Gets the ids of all parents of a catalog member ordered from the closest descendant to the most distant . Ignores the root .