The implementation can be pretty simple. Just take the idea of inheritance by copying properties, and expand it so that it takes an unlimited number of input objects to inherit from.
Let's create a
multi() function that accepts any number of input objects. You can wrap the loop that copies properties in another loop that goes through all the objects passed as