Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function map

    • Create a new Set where every element is modified by a provided transformation function.

      Type Parameters

      • T
      • U

      Parameters

      • this: Set<T>

        Set

      • transform: (element: T, index: number, set: Set<T>) => U

        The transformation function to apply.

      Returns Set<U>

      A new Set of equal size containing transformed elements.

      Array#map