Clear Up
SharpKit Reference

JsArray Class

The Array object provides support for creation of arrays of any data type.

Namespace: SharpKit.JavaScript

Base Types

System.Object

Base Interfaces

System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable

Methods

Name Description
Add(object)
concat(JsArray[]) Returns a new array consisting of a combination of the current array and any additional items.
concat(Object[]) Returns a new array consisting of a combination of the current array and any additional items.
GetEnumerator()
join(JsString) Returns a JsString value consisting of all the elements of an array concatenated together and separated by the specified separator character.
pop() Removes the last element from an array and returns it.
push(object) Appends new elements to an array, and returns the new length of the array.
push(object, object)
push(object, object, Object[])
reverse() Returns an Array object with the elements reversed.
shift() Removes the first element from an array and returns that element.
slice(JsNumber, JsNumber) Returns a section of an array.
slice(JsNumber) Returns a section of an array.
sort(Func<object, object, JsNumber>) Returns an Array object with the elements sorted. Warning: array itself is sorted internally
sort(JsFunction) Returns an Array object with the elements sorted. Warning: array itself is sorted internally
sort() Returns an Array object with the elements sorted.
splice(JsNumber, JsNumber, Object[]) Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. Returns the elements removed from the array.
unshift() Inserts specified elements into the beginning of an array.
unshift(Object[]) Inserts specified elements into the beginning of an array.

Indexers

Name Description
Item(JsNumber)

Properties

Name Description
length Returns an integer value one higher than the highest element defined in an array.
© Copyright 2005-2011 SharpKit. All rights reserved.