Array functions are those that allow the user to work with arrays. Presented in JavaScript Vision is a function that allows users to join a subset of the array's elements into a delimited list.

Use

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="JS_Vision_Array.js"></SCRIPT>

Remarks

Once an array is converted into a list, the JavaScript Vision list functions can be used to manipulate the elements of the list.

For more information on the SRC attribute of the SCRIPT tag, see JavaScript Vision Frequently Asked Questions.

References

Web Monkey Web Monkey Text
 

JavaScript 1.2, much of which only works in Netscape 4.0, adds several fundamental methods to the array object. A few of these very useful methods are included in the Webmonkey Array Enhancements JavaScript library which can be used by 3.0 browsers.

The methods included in the Webmonkey Array Enhancements are:

  • copy - Copies the contents of one array into another.
  • push - Adds an element to the end of an array.
  • pop - Removes an element from the end of an array and shortens the array.
  • shift - Removes an element from the beginning of an array and shortens the array.
  • unshift - Adds an element to the beginning of an array.
  • concat - Tacks the elements of an array onto the end of another array.
  • permute - Randomizes the order of elements in an array.
See: Webmonkey Array Enhancements