const formatArcgisrest = function (attributes) {
  for (const [key, value] of Object.entries(attributes)) {
    const result =
      String(value).includes("https:") || String(value).includes("http:")
        ? value
        : null;

    if (result) {
      attributes[key] = `<a href="${value}" target="_new" > ${value} </a>`;
    }
  }
  return attributes;
};

export default formatArcgisrest;
