• Convert a set to a JSON object by mapping its contents to an array

    Returns any[]

    The set elements as an array.