equal


Description:

[ Version ( since = "1.2" ) ]
public bool equal (Array b)

Check whether two arrays are equal.

Equality is defined as:

  • the array have the same number of elements
  • the values of elements in corresponding positions are equal

Parameters:

this

a JSON array

b

another JSON array

Returns:

`TRUE` if the arrays are equal, and `FALSE` otherwise