- title: "`in`"
body: |
- The builtin function `in` returns the input key is in the
+ The builtin function `in` returns whether or not the input key is in the
given object, or the input index corresponds to an element
in the given array. It is, essentially, an inversed version
of `has`.
body: |
For any filter `x`, `map(x)` will run that filter for each
- element of the input array, and produce the outputs a new
+ element of the input array, and return the outputs in a new
array. `map(.+1)` will increment each element of an array of numbers.
Similarly, `map_values(x)` will run that filter for each element,
body: |
Outputs array representations of the given path expression
- in `.`. The outputs are arrays of strings (keys in objects0
- and/or numbers (array indices.
+ in `.`. The outputs are arrays of strings (object keys)
+ and/or numbers (array indices).
Path expressions are jq expressions like `.a`, but also `.[]`.
There are two types of path expressions: ones that can match
- title: "`in`"
body: |
- The builtin function `in` returns the input key is in the
+ The builtin function `in` returns whether or not the input key is in the
given object, or the input index corresponds to an element
in the given array. It is, essentially, an inversed version
of `has`.
body: |
Outputs array representations of the given path expression
- in `.`. The outputs are arrays of strings (keys in objects0
- and/or numbers (array indices.
+ in `.`. The outputs are arrays of strings (object keys)
+ and/or numbers (array indices).
Path expressions are jq expressions like `.a`, but also `.[]`.
There are two types of path expressions: ones that can match
body: |
For any filter `x`, `map(x)` will run that filter for each
- element of the input array, and produce the outputs a new
+ element of the input array, and return the outputs in a new
array. `map(.+1)` will increment each element of an array of numbers.
Similarly, `map_values(x)` will run that filter for each element,