javascript Array slice( )

slice( ) NN 4 IE 4 ECMA 2  

slice(startIndex[, endIndex])

  

Returns an array that is a subset of contiguous items from the main array. Parameters determine where the selection begins and ends.

 
Parameters
 
startIndex

A zero-based integer of the first item of the subset from the current array.

endIndex

An optional zero-based integer of the last item of the subset from the current array. If omitted, the selection is made from the startIndex position to the end of the array.

 
Returned Value

An Array object.


276,Nickname,Homepage or email,Comments here,Add comment