Procedural File: Bs_Array.class.js.php
Source Location: /core/lang/Bs_Array.class.js.php
Classes:
Page Details:
this code extends javascripts built in array class.
if you include that file, all your arrays immediatly have that functionality.
Tags:
deleteItem [line 208]
removes the item with the given index from the array. shrinks the array by one. all elements after the removed element will move one place down! if you don't want that, use yourArray[i] = null;
Tags:
Parameters
deleteItemHash [line 231]
bool deleteItemHash(
mixed key)
|
|
same as deleteItem() but works with hashes.
Tags:
has [line 190]
tells if the given str is in the array. we wanted to name this method "in" so you could do myArray.in() but mozilla did not like it, thus renamed to .has()
Tags:
Parameters
indexOf [line 173]
returns the index position of element str in the vector.
Tags:
Parameters
moveDown [line 61]
moves the index specified one down in the vector. if the given key is out-of-bounds, the original array is returned.
Tags:
Parameters
moveToBottom [line 138]
array moveToBottom(
int key)
|
|
moves the index specified to the end of the vector. if the given key is out-of-bounds, the original array is returned.
Tags:
Parameters
moveToTop [line 105]
array moveToTop(
int key)
|
|
moves the index specified to the beginning of the vector. if the given key is out-of-bounds, the original array is returned.
Tags:
Parameters
moveUp [line 22]
moves the index specified one up in the vector. if the given key is out-of-bounds, the original array is returned.
Tags:
Parameters
|