Functiondojo.NodeList.splice

<script src="../../js/dojo.js"></script>
defined in dojo/_base/NodeList.js

This method behaves exactly like the Array.splice method with the caveat that it returns a dojo.NodeList and not a raw Array. For more details, see:

Usage

function (/*Integer*/ index, /*Integer?*/ howmany, /*Object?...*/ item) (view source)
parametertypedescription
indexIntegerbegin 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)
howmanyIntegerOptional. 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.
itemObjectOptional and repeating. Any number of optional parameters may be passed in to be spliced into the NodeList