Function sanitize

  • sanitize Filters and sanitizes an array of GeoTags.

    This function processes an array of GeoTags. It first filters the array to include only those tags where the first character is 'l' or 'L'. After this initial filtering, it calls the 'filterNonStringTags' function to typecheck array contents. The resulting array of GeoTags is then returned.

    Parameters

    • tags: GeoTags[]

      An array of GeoTags to be sanitized

    Returns GeoTags[]

    • The sanitized array of GeoTags