This may be a very simple question, but I have not found the answer in the last hour. I have the following array, which always contains a single object in index 0. For convenience in later use, I want to remove the object from the array and store it directly as a single object. I.e. the object should no longer be wrapped in the array.
Current Status: Array
Array(1)
0:
bio: "Test"
id: 2
image: "http://localhost:8000/media/default.jpg"
user: 2
Target: Object
Object
bio: "Test"
id: 2
image: "http://localhost:8000/media/default.jpg"
user: 2