@laserware/arcade
    Preparing search index...

    Function searchWithin

    • Returns an array of values in which the specified fieldName value matches the specified searchTerm in the specified collection.

      Type Parameters

      • T extends AnyDict

        Type of item in the specified collection.

      Parameters

      • collection: T[]

        Values to search.

      • searchTerm: string

        Search term to match.

      • fieldName: string

        Field name in the collection to search.

      Returns T[]

      Array of matching entries in the specified collection.