On Jun 25, 12:27 pm, jack <[EMAIL PROTECTED]> wrote:
> Just a beginner's question. I found slice(start, end) seems doesn't
> pick up that the last one specified by 'end'. Such as slice(0, 3), it
> picks up 0, 1 and 2. Is that correct?

You might want to check the ECMAScript specification:

15.4.4.10 Array.prototype.slice (start, end)
The slice method takes two arguments, start and end, and returns an
array containing the elements of the array from element start up to,
but not including, element end (or through the end of the array if end
is undefined).


--
Rob

Reply via email to