General advice for destructuring. If you're not sure how to destructure a particular value from an object literal, make the destructuring syntax match the object literal. Though in this case, the assignment might be much easier to read as const someText = object.text[0] instead.
const someText = object.text[0]instead.