index/functions/splitClassKey.md
splitClassKey(
key,delimiter):GalaChainTokenClassKey|undefined
Splits collection<d>category<d>type<d>additionalKey from the right, or undefined when there
are fewer than four segments or any of the four is empty. The one place the split is written;
the strict parseTokenClassKey calls it too.
The LAST three segments are always category, type and additionalKey; everything before
them is the collection. Parsing from the right is required because real collections contain
the $ delimiter themselves (for example $GMUSIC), so a plain left-to-right split('$')
shifts every field.
gala chain token class key additional parse
Parameters
| Parameter | Type |
|---|---|
key | string |
delimiter | "|" | "$" |
Returns
GalaChainTokenClassKey | undefined
gala chain token class key