Namespace in reactor_core.js

Array

4 functions in 3 groups · hide internal

Core runtime: data, input and the ReactorEvents feed.

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 source
Array.prototype.contains(element)

Checks whether the array contains a given element.

Details

Checks whether the array contains a given element.

@memberof
JsExtensions
@param
element any The element to search for.
@returns
boolean True if the array contains a given element.
@deprecated
includes() should be used instead.

equals

method source
Array.prototype.equals(array)

Checks whether the two arrays are the same.

Details

Checks whether the two arrays are the same.

@memberof
JsExtensions
@param
array array The array to compare to.
@returns
boolean True if the two arrays are the same.

Actions

remove

method source
Array.prototype.remove(element)

Removes a given element from the array (in place).

Details

Removes a given element from the array (in place).

@memberof
JsExtensions
@param
element any The element to remove.
@returns
array The array after remove.

Other

clone

method source
Array.prototype.clone()

Makes a shallow copy of the array.

Details

Makes a shallow copy of the array.

@memberof
JsExtensions
@returns
array A shallow copy of the array.