Merge json-object and populate next/prev items
问题 How can I pre -populate an JSON-Object which contains some css-properties. Where I need to add all not-contained properties to the previous object and the same for all next up items? The statement I need: if (property is not in object) object[property] = $('.foo').css(property); We have for example an element with the following styling: .foo { top: 0; width: 100px; } And the following keyframe -alike object: var keyframe = { 0: { top: 0 }, 1000: { top: 100 }, 2000: { width: 100 } }; Here we