The filter transform is intended for including/excluding specific fields. diff already has e.g., --includeProp to control which fields are compared -- which directly affects the output. The best you could do with filter is to remove items from the list based on their index, which is basically useless.
The result of a diff is a list of diff objects.
The
filter
transform is intended for including/excluding specific fields.diff
already has e.g.,--includeProp
to control which fields are compared -- which directly affects the output. The best you could do withfilter
is to remove items from the list based on their index, which is basically useless.