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

    Function filter

    • Filter this set to create a subset of elements which satisfy a certain test criterion.

      Type Parameters

      • T

      Parameters

      • this: Set<T>
      • test: (element: T, index: number, set: Set) => boolean

        The test criterion to apply.

      Returns Set<T>

      A new Set containing only elements which satisfy the test criterion.

      Array#filter