Built-In Namespace Array
Method Attributes | Method Name and Description |
---|---|
<static> |
Array.find(x)
|
<static> |
Array.indexOf(x)
|
<static> |
Array.lastIndexOf(x)
|
<static> |
Array.shuffle()
|
Method Detail
<static>
{Array|Boolean}
Array.find(x)
Defined in: Jelo.js.
- Parameters:
- {Mixed} x
- The item to attempt to find, or a RegExp to match.
- Returns:
- {Array|Boolean} An array of indeces at which the item was found, or at which the RegExp tested positive. Boolean false if no element matched.
<static>
{Number}
Array.indexOf(x)
Defined in: Jelo.js.
- Parameters:
- {Mixed} x
- The item to attempt to find.
- Returns:
- {Number} The item's index if found, -1 otherwise.
<static>
{Number}
Array.lastIndexOf(x)
Defined in: Jelo.js.
- Parameters:
- {Mixed} x
- The item to attempt to find.
- Returns:
- {Number} The index of the item's last occurrence if found, -1 otherwise.
<static>
{Array}
Array.shuffle()
Defined in: Jelo.js.
- Returns:
- {Array} The array, randomized.