Function toSet

  • Convert an Array or space-separated string to a Set.

    Parameters

    • val: any

    Returns Set<string>