Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter by null value #63

Open
matthews90 opened this issue May 9, 2018 · 2 comments
Open

Filter by null value #63

matthews90 opened this issue May 9, 2018 · 2 comments

Comments

@matthews90
Copy link

Cannot filter array by property null value. I cant find objects with null property value:

https://stackblitz.com/edit/ngx-filter-pipe-vvsfie?file=app/app.component.ts

@VadimDez
Copy link
Owner

So you expect that pipe will return only one value { name: null }?

VadimDez added a commit that referenced this issue Jul 29, 2018
@vandres
Copy link

vandres commented Oct 8, 2018

Yes, please.

My Use-Case for this is, having an array of elements where I want to filter:

Give me every element
Where the value is "Group1" or "Group2" or where property is empty

Only if the element has the value "Group3", it should be filtered out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants