Awee

key

Key extracts a value from a map or slice by key path or index.

Key extracts a value from a map or slice by key path or index. Use dot notation to traverse nested maps.

Input

map array

Parameters

#TypeRequired
0stringyes

Returns

any

Examples

{{ user | key:'name' }}
{{ config | key:'database.host' }}
{{ items | key:0 }}

How is this guide?

On this page