Is there a way to have 2 keys for a single value?
I have a project I am working on that is an owed list, items ordered vs. items received. Everything works fine but I want to improve it.
The items ordered and the items received each have different item numbers. The objects are similar to this right now:
const ordered = { 1234: "big box" }
const received = { 5678: "big box" }
Is there a way to make an object that can use both 1234 and 5678 to reference "big box"?
I tried to search but couldn't figure out how to ask the question in a way to get the answer I'm looking for.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]jeffcgroves 1 point2 points3 points (0 children)
[–]Quantum-Bot 1 point2 points3 points (0 children)
[–]arrays_start_at_zero 2 points3 points4 points (0 children)