We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07cc884 commit b8dc909Copy full SHA for b8dc909
docs/functions.md
@@ -83,7 +83,7 @@ filter $ => .age >= 18
83
84
## length
85
86
-Returns the length of the input:
+Returns the length of the input if it's an array:
87
88
```
89
[1, 0, 1] | length
@@ -93,6 +93,20 @@ Returns the length of the input:
93
3
94
95
96
+Returns the count of the elements of an object if the input is an object:
97
+
98
+```
99
+{"foo": "bar"} | length
100
101
102
103
+1
104
105
106
+## size
107
108
+Same as `length`.
109
110
## reverse
111
112
Reverses the input:
0 commit comments