Built-In Namespace Array
Method Attributes | Method Name and Description |
---|---|
add(value)
Add 'value' in array
|
|
copy(array)
Copy the parameter array into this array.
|
|
indexOf(value)
Return the position of a value
|
|
insertAt(value, index)
Insert a 'value' at a specified index in array
|
|
remove(value)
Remove first 'value' found in array
|
Method Detail
add(value)
Add 'value' in array
Defined in: Array.js.
Defined in: Array.js.
- Parameters:
- {String} value
- Value to add.
copy(array)
Copy the parameter array into this array.
Defined in: Array.js.
Defined in: Array.js.
- Parameters:
- array
- source array.
{int}
indexOf(value)
Return the position of a value
Defined in: Array.js.
Defined in: Array.js.
- Parameters:
- {Object} value
- the searched value
- Returns:
- the position of tis value if exist, else -1
{Array}
insertAt(value, index)
Insert a 'value' at a specified index in array
Defined in: Array.js.
Defined in: Array.js.
- Parameters:
- {String} value
- Value to insert.
- {int} index
- The index where the value must be inserted
- Returns:
- the Array into which the insert has been processed.
{boolean}
remove(value)
Remove first 'value' found in array
Defined in: Array.js.
Defined in: Array.js.
- Parameters:
- {String} value
- Value searched inside the array.
- Returns:
- True if found and removed, false else.