function createPatternSubgroupItem(pattern) {
    return {
      patternPartial: pattern.patternPartial,
      patternName: pattern.patternName,
      patternState: pattern.patternState,
      patternPath: pattern.patternLink,
      name: pattern.name,
      isDocPattern: false,
      order: Number(pattern.order) || 0, // Failsafe is someone entered a string
      variantOrder: Number(pattern.variantOrder) || 0, // Failsafe is someone entered a string
    };
  }
/**
   * Creates a patternSubgroupItem object from a pattern
   * This is a menu item you click on
   * @param pattern - the pattern to derive the subgroupitem from
   * @returns {{patternPartial: string, patternName: (*|string), patternState: string, patternPath: string}}
   */
Creates a patternSubgroupItem object from a pattern
This is a menu item you click on
@param pattern - the pattern to derive the subgroupitem from
@returns {{patternPartial: string, patternName: (*|string), patternState: string, patternPath: string}}
Creates a patternSubgroupItem object from a pattern This is a menu item you click on @param pattern - the pattern to derive the subgroupitem from @returns {{ patternPartial : string patternName : ( * |string ) patternState : string patternPath : string }}
function createPatternSubgroupItem(pattern) {
    return {
      patternPartial: pattern.patternPartial,
      patternName: pattern.patternName,
      patternState: pattern.patternState,
      patternPath: pattern.patternLink,
      name: pattern.name,
      isDocPattern: false,
      order: Number(pattern.order) || 0, 
      variantOrder: Number(pattern.variantOrder) || 0, 
    };
  }
function createPatternSubgroupItem ( pattern ) { return { patternPartial : pattern . patternPartial , patternName : pattern . patternName , patternState : pattern . patternState , patternPath : pattern . patternLink , name : pattern . name , isDocPattern : false , order : Number ( pattern . order ) || 0 , variantOrder : Number ( pattern . variantOrder ) || 0 , } ; }
Creates a patternSubgroupItem object from a pattern
 This is a menu item you click on
 @param pattern - the pattern to derive the subgroupitem from
 @returns {{patternPartial: string, patternName: (*|string), patternState: string, patternPath: string}}
Creates a patternSubgroupItem object from a pattern This is a menu item you click on @param pattern - the pattern to derive the subgroupitem from @returns {{ patternPartial : string patternName : ( * |string ) patternState : string patternPath : string }}
// Failsafe is someone entered a string // Failsafe is someone entered a string