• This function returns whether any object in an array has a specified property value which matches an optional condition, or, if omitted, has a truthy value

    Parameters

    • values: any[]

      Array of objects to be filtered

    • path: string

      Name of property or nested path to evaluate each object

    • Optional condition: any

      Optional condition

    Returns boolean

    Formatted currency string