function extractURLsFromTemplates(URLTemplates) {
  if (Array.isArray(URLTemplates)) {
    return URLTemplates.map(function (URLTemplate) {
      return URLTemplate && URLTemplate.hasOwnProperty('url') ? URLTemplate.url : URLTemplate;
    });
  }

  return URLTemplates;
}
/**
 * Extract the url/s from the URLTemplates.
 *   If the URLTemplates is an array of urls
 *   If the URLTemplates object has a url property
 *   If the URLTemplates is a single string
 *
 * @param {Array|String} URLTemplates - An array|string of url templates.
 */
Extract the url/s from the URLTemplates.
If the URLTemplates is an array of urls
If the URLTemplates object has a url property
If the URLTemplates is a single string

@param {Array|String} URLTemplates - An array|string of url templates.
Extract the url / s from the URLTemplates . If the URLTemplates is an array of urls If the URLTemplates object has a url property If the URLTemplates is a single string @param { Array|String } URLTemplates - An array|string of url templates .
function extractURLsFromTemplates(URLTemplates) {
  if (Array.isArray(URLTemplates)) {
    return URLTemplates.map(function (URLTemplate) {
      return URLTemplate && URLTemplate.hasOwnProperty('url') ? URLTemplate.url : URLTemplate;
    });
  }
  return URLTemplates;
}
function extractURLsFromTemplates ( URLTemplates ) { if ( Array . isArray ( URLTemplates ) ) { return URLTemplates . map ( function ( URLTemplate ) { return URLTemplate && URLTemplate . hasOwnProperty ( 'url' ) ? URLTemplate . url : URLTemplate ; } ) ; } return URLTemplates ; }
Extract the url/s from the URLTemplates.
Extract the url / s from the URLTemplates .