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

Add method(s) to filter the results based on termType #25

Open
bergos opened this issue Jan 15, 2020 · 0 comments
Open

Add method(s) to filter the results based on termType #25

bergos opened this issue Jan 15, 2020 · 0 comments

Comments

@bergos
Copy link
Contributor

bergos commented Jan 15, 2020

There should be one or multiple methods to filter the results based on the termType. This can be done already with the .filter method, but there should be a shorter, more readable option to handle such cases. The filter code for a NamedNode would look like this:

cf.filter(cf => termType === 'NamedNode')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants