vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function findFirstMatch

    • Find the first element in the array that matches any of the matchers. Matchers are evaluated by priority provided by the order of the matchers in the array.

      Type Parameters

      • T

      Parameters

      • items: T[]

        Array of items to search

      • matchers: Iterable<(field: T) => boolean>

        Matchers to evaluate

      Returns undefined | T

      First matching item or undefined if no match was found