Usage

Syntax: string.subarray(index[, length]);
Returns array.

Explanation

Extracts a sub-array starting at index and stopping at the end of the array.
If the optional parameter length is specified, the resulting array will be of the same length and starting at index.

Example

function onCreated()
{
  temp.foo = {"foo", "foo", "baz", "bar", "foo"};
  temp.array = temp.foo.subarray(1, 3);
}

... Will would set temp.array to {"foo", "baz", "bar"}

Categories

CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki