node-scripts/utils.js
/**
 * Creates an array with all names of full journals of all tiers and subtiers
 * 
 * @param {string} root - journals branch: WARRIOR, MAGE etc.
 * @returns {string[]} - array with all tiers and subtiers for empty and full journals
 */
Creates an array with all names of full journals of all tiers and subtiers

@param {string} root - journals branch: WARRIOR, MAGE etc.
@returns {string[]} - array with all tiers and subtiers for empty and full journals
Creates an array with all names of full journals of all tiers and subtiers @param { string } root - journals branch : WARRIOR MAGE etc . @returns { string [] } - array with all tiers and subtiers for empty and full journals
function createArrayOfAllJournals(root) {
  let allNames = [];
  for (let tier = 4; tier <= 8; tier++) {
    allNames.push(`T${tier}_JOURNAL_${root}_EMPTY`);
    allNames.push(`T${tier}_JOURNAL_${root}_FULL`);
  }
  return allNames.slice(0, -1);
}
function createArrayOfAllJournals ( root ) { let allNames = [ ] ; for ( let tier = 4 ; tier <= 8 ; tier ++ ) { allNames . push ( ` ${ tier } ${ root } ` ) ; allNames . push ( ` ${ tier } ${ root } ` ) ; } return allNames . slice ( 0 , - 1 ) ; }
Creates an array with all names of full journals of all tiers and subtiers
Creates an array with all names of full journals of all tiers and subtiers