Is there a way in JavaScript to create a new object that contains only the first 7 keys of another object? This is the object structure from which I want to extract the data.
{"data":[{"id":2338785,"team1":{"id":10531,"name":"Just For Fun"},"team2":{"id":10017,"name":"Rugratz"},"result":"2 - 0","event":{"name":"Mythic Cup 5","id":5148},"format":"bo3","stars":0,"date":1578279271000},....],"last_update":1578329378792}
Assuming there are 100 keys like this one, how can I specifically copy only the first 7 keys into a new object using JavaScript?