hugo/docs/content/en/functions/reflect.IsMap.md
Cameron Moore c84f506f8e tpl: Add reflect namespace
Add a reflect namespace that offers a two boolean functions for
testing if a value is a map or slice.

Fixes #4081
2018-12-07 23:29:37 +01:00

520 B

title description godocref date publishdate lastmod categories menu keywords signature workson hugoversion relatedfuncs deprecated
reflect.IsMap Reports if a value is a map. 2018-11-28 2018-11-28 2018-11-28
functions
docs
parent
functions
reflect
reflection
kind
reflect.IsMap INPUT
v0.53
reflect.IsSlice
false

reflect.IsMap reports if VALUE is a map. Returns a boolean.

{{ reflect.IsMap (dict "key" "value") }} → true
{{ reflect.IsMap "yo" }} → false