rialto.array
| Name space |
rialto.array |
| FILE |
rialtoEngine\javascript\core\baseRialto.js |
| NAME |
rialto.array |
| INHERITS |
|
| VERSION |
0.86 |
| update |
|
| DESCRIPTION |
methods to manipulate javascript array |
CONSTRUCTOR
Example:
this is an abstract object and all the method must be call using the rialto.array prefix
PUBLIC METHODS
| Method |
Arguments list |
Return value |
Inherits |
To redefine |
|
add
|
Array arrayPar,object elment |
void |
no |
no |
|
arrayToString
|
Array arrayPar |
String |
no |
no |
|
copy
|
Array arrayPar |
Array |
no |
no |
|
indexOf
|
Array arrayPar,object elment |
int |
no |
no |
|
insert
|
Array arrayPar,int ind,object elment |
void |
no |
no |
|
remove
|
Array arrayPar,object elment |
void |
no |
no |
|
sort
|
Array arrayPar |
void |
no |
no |
add
add the given element in the array if it is not already in
Parameters:
Array arrayPar:array we manipulate
object elment:element to add in the array
arrayToString
return a string representation of the array
Parameters:
Array arrayPar:array we manipulate
copy
return a copy of the given array
Parameters:
Array arrayPar:array we manipulate
indexOf
return the index of the given element or -1 if it is not in the array
Parameters:
Array arrayPar:array we manipulate
object elment:element to find
insert
insert the given element at the given index
Parameters:
Array arrayPar:array we manipulate
int ind:index where we insert
object elment:element to insert
remove
remove the given element from the array if it is in
Parameters:
Array arrayPar:array we manipulate
object elment:element to remove
sort
sort the array (downward alphabetic sort)
Parameters:
Array arrayPar:array we manipulate