# map:contains - XPath XQuery Reference

Tests whether a supplied map contains an entry for a given keydeterministiccontext-independentfocus-independentThe function map:contains returns true if the map supplied as $map contains an entry with the same key as the
            supplied value of $key; otherwise it returns false.map:contains($week, 2)true()map:contains($week, 9)false()map:contains(map{}, "xyz")false()map:contains(map{"xyz":23}, "xyz")true()map:contains(map{"abc":23, "xyz":()}, "xyz")true()