Recently, I've been working on creating alias's for a specific property in my code.
var default_commands = {}
default_commands['foo'] = "bar";
My goal is to create multiple aliases for the key 'foo' in the object.
For example:
default_commands['fu'] = default_commands['foo'];
default_commands['fuu'] = default_commands['foo'];
I want to find a way to simplify this process without having to manually write out each alias.
I attempted:
default_commands['fu','fuu'] = default_commands['foo'];
However, that method did not yield the desired results.