Usage

Syntax: array.replace(int index, obj);

Explanation

Replaces the data at the index given with the new data supplied with the function (obj).

Example

function onCreated()
{
  temp.foo = {"foo", "bar", "baz"};
  temp.foo.replace(1, "bob");
}

... Will set temp.foo to {"foo", "bob", "baz"}, since index 1 is replaced with "bob". Indexes starts at 0.

Categories

CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside

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

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