Clear Up
SharpKit Reference

JsArray.slice Method (JsNumber, JsNumber)

Returns a section of an array.

Namespace: SharpKit.JavaScript

Class: JsArray

Syntax

public JsArray slice(JsNumber start, JsNumber end)

Parameters

start
Type: SharpKit.JavaScript.JsNumber
Required. The index to the beginning of the specified portion of the array.
end
Type: SharpKit.JavaScript.JsNumber
Optional. The index to the end of the specified portion of the array.

Return Value

Type: SharpKit.JavaScript.JsArray

Remarks

The slice method returns an Array object containing the specified portion of the array. The slice method copies up to, but not including, the element indicated by end. If start is negative, it is treated as length + start where length is the length of the array. If end is negative, it is treated as length + end where length is the length of the array. If end is omitted, extraction continues to the end of the array. If end occurs before start, no elements are copied to the new array.
© Copyright 2005-2011 SharpKit. All rights reserved.