Within my object, there exist multiple properties where the values are identical while the keys vary
const arr: any = {
Combo: ['state', 'command'],
Extrahit: ['state', 'command'],
Punish: ['frame', 'command', 'damage', 'range', 'hitframe'],
standing: ['frame', 'command', 'damage', 'range', 'hitframe'],
up: ['frame', 'command', 'damage', 'range', 'hitframe'],
};
I am seeking ways to simplify this declaration section.
One suggestion I came across was utilizing iteration functions, but that does not seem applicable to my specific scenario.
I am interested in enhancing the readability of the code. Any suggestions on how I can achieve this?