Loading TOC...

map:contains

map:contains(
   $map as map:map,
   $key as xs:string
) as xs:boolean

Summary

Returns true if the key exists in the map.

Parameters
map A map.
key A key.

Example

  map:contains($table, "some-key")
  => fn:true()

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.