Edit It: Copy food and fact's Properties into the capital Object
This code shows how to copy two objects' properties into another object.
See it on StackBlitzThis code shows how to copy two objects' properties into another object.
See it on StackBlitz