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

    Function find

    • Find the first element in this set which satisfies a certain test criterion.

      Type Parameters

      • T

      Parameters

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

        The test criterion to apply.

      Returns T | undefined

      The first element in the set which satisfies the test criterion, or undefined.

      Array#find