diff --git a/manual/index.html b/manual/index.html index b422c01c..9ee2c224 100644 --- a/manual/index.html +++ b/manual/index.html @@ -125,6 +125,10 @@ "`keys`" : "keys", + "`select`" : "select", + + "`empty`" : "empty", + "`map(x)`" : "mapx", "`add`" : "add", @@ -1023,6 +1027,99 @@ +
+

+

select

+ +

+

The function select(foo) produces its input unchanged if foo returns true for that input, and produces no output otherwise.

+ +

It’s useful for filtering lists: [1,2,3] | select(. >= 2) will give you [3].

+ + +
+ + + + Example + +
+ + + + + + + + + + + + + + + +
jq 'select(. >= 2)'
Input[1,5,3,0,7]
Output[5,3,7]
+ +
+
+ +
+ +
+

+

empty

+ +

+

empty returns no results. None at all. Not even null.

+ +

It’s useful on occasion. You’ll know if you need it :)

+ + +
+ + + + Examples + +
+ + + + + + + + + + + + + + + +
jq '1, empty, 2'
Inputnull
Output12
+ + + + + + + + + + + + + + +
jq '[1,2,empty,3]'
Inputnull
Output[1,2,3]
+ +
+
+ +
+

map(x)

@@ -1035,11 +1132,11 @@
- + Example -
+
@@ -1074,11 +1171,11 @@
@@ -1141,11 +1238,11 @@
@@ -1178,11 +1275,11 @@
@@ -1229,11 +1326,11 @@
@@ -1274,11 +1371,11 @@
@@ -1317,11 +1414,11 @@
@@ -1367,11 +1464,11 @@ not.

@@ -1479,11 +1576,11 @@ not.

@@ -1577,11 +1674,11 @@ not.

@@ -1628,11 +1725,11 @@ not.

@@ -1722,11 +1819,11 @@ not.