export const formatURL = (url) =>  (
  url.length ? url.replace(/^https?:\/\//, '') : ''
)

export const getTitle = (data) => (
  data.about && data.about.name
    ? data.about.name
    : data.totalItems + " Entries"
)

export default {
  getTitle, formatURL
}

export const formatURL = (url) =>  (
  url.length ? url.replace(/^https?:\/\//, '') : ''
)

export const getTitle = (data) => (
  data.about && (data.about.name || data.about['@id'])
    ? data.about.name || data.about['@id']
    : data.totalItems + " Entries"
)

export default {
  getTitle, formatURL
}

Fix title of resources without name
Fix title of resources without name
