dojo.NodeList.slice
<script src="../../js/dojo.js"></script>
defined in dojo/_base/NodeList.js
This method behaves exactly like the Array.slice method with the caveat that it returns a dojo.NodeList and not a raw Array. For more details, see: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:slice
parameter | type | description |
---|---|---|
begin | Integer | Can be a positive or negative integer, with positive integers noting the offset to begin at, and negative integers denoting an offset from the end (i.e., to the left of the end) |
end | Integer | Optional. Optional parameter to describe what position relative to the NodeList's zero index to end the slice at. Like begin, can be positive or negative. |