<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.empty.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.empty</api:function-name><api:suggest>fn.empty</api:suggest><api:suggest>fn</api:suggest><api:suggest>empty</api:suggest><api:function-link mode="xquery" fullname="fn:empty">/apidoc/8.0/fn:empty.xml</api:function-link><api:function mode="javascript" name="empty" type="builtin" lib="fn" category="SequenceBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.empty"><api:summary>
If the value of $arg is the empty sequence, the function returns true;
otherwise, the function returns false.
</api:summary><api:params><api:param name="arg" type="item()*"><api:param-description>
  A sequence to test.  
  <span class="javascript" xmlns="http://www.w3.org/1999/xhtml">If you pass in a single value, 
  it is treated as a ValueIterator with that single item; therefore, if you 
  pass in an array, the array is treated as a single value (not as one value
  for each item in the array). If you mean to pass in  
  the values of each item in the array, then you can call 
  <a href="./xdmp.arrayValues">xdmp.arrayValues</a> on the array. </span>
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>ValueIterator</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.empty(fn.remove(xdmp.arrayValues(["hello", "world"]), 1));

=&gt; false
</pre></api:example></api:function></api:function-page>