YUI Test Example

ArrayAssert

This example shows how to use the ArrayAssert object to specifically interrogate arrays for information about what is contained within. Note that these methods can be used on actual Array objects as well as array-like objects such as arguments and HTMLCollection.

View the source of this page to see how it works.