textToString extracts plain text content from YSONText.
textToString
YSONText object
Plain text string
const text = { type: 'Text', nodes: [{val: 'H'}, {val: 'i'}] };textToString(text); // "Hi" Copy
const text = { type: 'Text', nodes: [{val: 'H'}, {val: 'i'}] };textToString(text); // "Hi"
textToStringextracts plain text content from YSONText.