• Returns a new unique Symbol value. If noPoly is true and symbols are not supported then this will return null.

    Parameters

    • Optional description: string | number

      Description of the new Symbol object.

    • Optional noPoly: boolean

      Flag indicating whether to return a polyfil if symbols are not supported.

    Returns symbol

    The new symbol