Array.html revision eb9b6f817df5c660be9f00fc5d27fe33479fdc98
7380653a55868892cb97060c61641fc73ba22cbeDav Glass<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
7380653a55868892cb97060c61641fc73ba22cbeDav Glass<html>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove<head>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove <title>API: yui Array (YUI Library)</title>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <link rel="stylesheet" type="text/css" href="assets/api.css">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <script type="text/javascript" src="assets/api-js"></script>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <script type="text/javascript" src="assets/ac-js"></script>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove</head>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove<body id="yahoo-com">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove<div id="doc3" class="yui-t2">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div id="hd">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h3>yui&nbsp; <span class="subtitle">3.00PR1</span></h3>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <p>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a href="/index.html">Yahoo! UI Library</a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove &gt; <a href="/module_yui.html">yui</a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove &gt; Array
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </p>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div id="bd">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div id="yui-main">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="yui-b">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <form name="yui-classopts-form">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> Show Private</span>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> Show Protected</span>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <span id="classopts"><input type="checkbox" name="showdeprecated" id="showdeprecated" /> Show Deprecated</span>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </form>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h2>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <code>static</code>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove Class <b>Array</b>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <span class="extends">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </span>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <span class="extends">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </span>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </h2>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <!-- class tree goes here -->
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <div class="summary description">
7380653a55868892cb97060c61641fc73ba22cbeDav Glass Y.Array(o) returns an array:
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove- Arrays are return unmodified unless the start position is specified.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove- "Array-like" collections (@see Array.test) are converted to arrays
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove- For everything else, a new array is created with the input as the sole item
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove- The start position is used if the input is or is like an array to return
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grovea subset of the collection.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="section constructor details">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h3 id="constructor">Constructor</h3>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="content">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="detail">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <strong>Array</strong>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove (
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove o
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove ,
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove i
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove ,
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove al
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove )
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dt>Parameters:</dt>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>o
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove &lt;object&gt;
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove the item to arrayify
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>i
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove &lt;int&gt;
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove if an array or array-like, this is the start index
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>al
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove &lt;boolean&gt;
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove if true, it forces the array-like fork. This
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grovecan be used to avoid multiple array.test calls.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="section method details">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h3 id="methods">Methods</h3>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="content">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a name="method_each">each</a></h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="detail">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove YUI
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <strong>each</strong>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove (
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove )
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove Executes the supplied function on each item in the array.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dt>Returns:
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove YUI
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code></dt>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>the YUI instance</dd>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass </dl>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <hr />
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a name="method_hash">hash</a></h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="detail">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove object
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <strong>hash</strong>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove (
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove k
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove ,
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove v
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
7380653a55868892cb97060c61641fc73ba22cbeDav Glass )
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove Returns an object using the first array as keys, and
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grovethe second as values. If the second array is not
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Groveprovided the value is set to true for each.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dt>Parameters:</dt>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <dd>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <code>k &lt;Array&gt;</code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove keyset
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>v &lt;Array&gt;</code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove optional valueset
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dt>Returns:
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove object
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code></dt>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <dd>the hash</dd>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass </dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <hr />
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a name="method_indexOf">indexOf</a></h4>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <div class="detail">
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove int
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <strong>indexOf</strong>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove (
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove a
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass ,
7380653a55868892cb97060c61641fc73ba22cbeDav Glass val
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove )
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove Returns the index of the first item in the array
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grovethat contains the specified value, -1 if the
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grovevalue isn't found.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove <dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dt>Parameters:</dt>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove <code>a &lt;Array&gt;</code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove the array to search
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove <code>val &lt;object&gt;</code>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove the value to search for
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove </dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove <dl>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove <dt>Returns:
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove int
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code></dt>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>the index of the item that contains the value or -1</dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <hr />
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a name="method_test">test</a></h4>
9271f9c6e942b68a4fbfa228f67ab46b72c76780Ryan Grove <div class="detail">
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <code>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass int
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <strong>test</strong>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove (
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass )
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove Evaluates the input to determine if it is an array, array-like, or
7380653a55868892cb97060c61641fc73ba22cbeDav Glasssomething else. This is used to handle the arguments collection
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Groveavailable within functions, and HTMLElement collections
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="description">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dl>
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass <dt>Returns:
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <code>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove int
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </code></dt>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <dd>a number indicating the results:
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove0: Not an array or an array-like collection
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove1: A real array.
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove2: array-like collection.</dd>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </dl>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <hr />
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="yui-b">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="nav">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="module">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>Modules</h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <ul class="content">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_anim.html">anim</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_anim-color.html">anim-color</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_anim-curve.html">anim-curve</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_anim-easing.html">anim-easing</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_anim-scroll.html">anim-scroll</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_anim-xy.html">anim-xy</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_attribute.html">attribute</a></li>
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove <li class=""><a href="module_base.html">base</a></li>
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_dd-plugin.html">dd-plugin</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove <li class=""><a href="module_event.html">event</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_get.html">get</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass <li class=""><a href="module_io.html">io</a></li>
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <li class=""><a href="module_loader.html">loader</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass <li class=""><a href="module_node.html">node</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_node-class.html">node-class</a></li>
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_node-region.html">node-region</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="module_node-screen.html">node-screen</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
7380653a55868892cb97060c61641fc73ba22cbeDav Glass <li class=""><a href="module_Queue.html">Queue</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class="selected"><a href="module_yui.html">yui</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </ul>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="module">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>Classes</h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <ul class="content">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class="selected"><a href="Array.html">Array</a></li>
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass <li class=""><a href="Lang.html">Lang</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="Object.html">Object</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="UA.html">UA</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="YUI.html">YUI</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </ul>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="module">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>Files</h4>
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass <ul class="content">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-array.js.html">yui-array.js</a></li>
c0d83403b13f02bc6fdcf62a712de150a7f974e2Dav Glass <li class=""><a href="yui-core.js.html">yui-core.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-dump.js.html">yui-dump.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-init.js.html">yui-init.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-lang.js.html">yui-lang.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-later.js.html">yui-later.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-log.js.html">yui-log.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-object.js.html">yui-object.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui-ua.js.html">yui-ua.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><a href="yui.js.html">yui.js</a></li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </ul>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div class="module">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <h4>Methods</h4>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <ul class="content">
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><!--<code>YUI</code>-->
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a href="#method_each">each</a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><!--<code>object</code>-->
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a href="#method_hash">hash</a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><!--<code>int</code>-->
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a href="#method_indexOf">indexOf</a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <li class=""><!--<code>int</code>-->
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <a href="#method_test">test</a>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </li>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </ul>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove <div id="ft">
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove <hr />
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove Copyright &copy; 2008 Yahoo! Inc. All rights reserved.
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove </div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove</div>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove</body>
92e597e015cd0d9a07055436b637d9cfdb9c1164Ryan Grove</html>
b5276e211acea576c3d3edc6aaccd94a8fc4402aRyan Grove