Skip to content

Commit faa06e1

Browse files
Document keys and values modifiers (#1352)
1 parent fb014bd commit faa06e1

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

content/collections/modifiers/keys.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
id: 9197be05-5e2d-400f-a0f0-c52a4d460e60
3+
blueprint: modifiers
4+
title: Keys
5+
modifier_types:
6+
- array
7+
- utility
8+
---
9+
Retrieves just the keys from the given array.
10+
11+
```yaml
12+
the_team:
13+
jack: Jack McDade
14+
jason: Jason Varga
15+
jesse: Jesse Leite
16+
joshua: Joshua Blum
17+
duncan: Duncan McClean
18+
```
19+
20+
```
21+
{{ the_team | keys }}
22+
```
23+
24+
```yaml
25+
- jack
26+
- jason
27+
- jesse
28+
- joshua
29+
- duncan
30+
```
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
id: b57caa5c-ae9e-4220-b8a6-f7c82d16f0df
3+
blueprint: modifiers
4+
title: Values
5+
modifier_types:
6+
- array
7+
- utility
8+
---
9+
Retrieves just the keys from the given array.
10+
11+
```yaml
12+
the_team:
13+
jack: Jack McDade
14+
jason: Jason Varga
15+
jesse: Jesse Leite
16+
joshua: Joshua Blum
17+
duncan: Duncan McClean
18+
```
19+
20+
```
21+
{{ the_team | values }}
22+
```
23+
24+
```yaml
25+
- Jack McDade
26+
- Jason Varga
27+
- Jesse Leite
28+
- Joshua Blum
29+
- Duncan McClean
30+
```

0 commit comments

Comments
 (0)