jmespath.js
jmespath.js copied to clipboard
feature request: the "in" operator
Just a suggestion, because I feel the "in" operator would be useful in several contexts.
A possible syntax could be as follows:
locations[?state in ['WA', 'CA', 'NY']].name
However, the filter might be exposed as a simpler function as follows:
locations[?in(state, ['WA', 'CA', 'NY'])].name
Excellent work, though!
+1
+1
+1