How to use http return data replaces the old data?

this is a page component method,http requests a newTimeline, to replace the timeline by timeline[key] = newTimeline[key];

This is correct it? There is a better way?

  //
  // set like for timeline
  setLikeForTimeline(timeline: Timeline) {
    this.timelineService.setLike(timeline)
      .then(newTimeline => {
        for (let key in newTimeline) {
          timeline[key] = newTimeline[key];
        }
      });
  }