code: function getTypeArray (typeString) {
    const letters = typeString.split('')
    const elements = []
    let acc = ''
  
    while (letters.length) {
      const letter = letters.shift()
      // Ignore spaces
      if (letter !== ' ') {
        switch (letter) {
          case '[':
          case ']':
          case '/':
            if (acc.length) {
              elements.push(acc)
              acc = ''
            }
            elements.push(letter === '/' ? ' / ' : letter)
            break
          default:
            acc += letter
        }
      }
      continue
    }
    if (acc.length) {
      elements.push(acc)
      acc = ''
    }
    return elements
  }
docs: Create an array of strings that are either '[', ']', '/' or a string that can be converted to a type