Skip to content

Conversation

@arifogel
Copy link
Contributor

I added the subset filter operator.
You can do things like:
?(@.availableSizes subset ['S', 'M', 'L'])
or
?(['S', 'M', 'L'] subset @.availableSizes)
In order to check for proper subset, for example you could do:
?(@.availableSizes subset ['S', 'M', 'L'] && !(['S', 'M', 'L'] subset @.availableSizes))

@jochenberger
Copy link
Contributor

Could you please add tests?
I wonder if there might be a better name for the operator than subset. At least to me, it wasn't clear about the operator's direction. Maybe subsetof?

@jochenberger
Copy link
Contributor

This is (more or less) fixed via #365

@arifogel
Copy link
Contributor Author

Closing since @dhalperi took care of this.

@arifogel arifogel closed this Jul 11, 2017
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

Successfully merging this pull request may close these issues.

2 participants