Adding a dynamic amount of values to a JavaScript Object Property

Can you give some more info, ie. what is the input and what should become the output ?