This function filters an array of objects based on whether a specified property value 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
This function filters an array of objects based on whether a specified property value matches an optional condition, or, if omitted, has a truthy value