samples/textDetection.js
function extractDescription(texts) {
  let document = '';
  texts.forEach(text => {
    document += text.description || '';
  });
  return document.toLowerCase();
}
function extractDescription(texts) {
  let document = '';
  texts.forEach(text => {
    document += text.description || '';
  });
  return document.toLowerCase();
}
function extractDescription ( texts ) { let document = '' ; texts . forEach ( text => { document += text . description || '' ; } ) ; return document . toLowerCase ( ) ; }
Provide a joined string with all descriptions from the response data
@param {TextAnnotation[]} texts Response data from the Vision API
@returns {string} A joined string containing al descriptions
Provide a joined string with all descriptions from the response data