Quick Reference
Checks (True / False) 2
| contains() | Checks whether the array contains a given element. |
| equals() | Checks whether the two arrays are the same. |
Actions 1
| remove() | Removes a given element from the array (in place). |
Other 1
| clone() | Makes a shallow copy of the array. |
Checks (True / False)
contains
method sourceArray.prototype.contains(element)
Checks whether the array contains a given element.
Details
Checks whether the array contains a given element.
equals
method sourceArray.prototype.equals(array)
Checks whether the two arrays are the same.
Details
Checks whether the two arrays are the same.
Actions
remove
method sourceArray.prototype.remove(element)
Removes a given element from the array (in place).
Details
Removes a given element from the array (in place).
Other
clone
method sourceArray.prototype.clone()
Makes a shallow copy of the array.
Details
Makes a shallow copy of the array.