ballerina.reflect package
public function equals ( any value1 , any value2 ) ( boolean )
Check whether 2 values are deeply equal. Supports string, int, float, boolean, type, structs, maps, arrays, any, JSON. Any other type returns FALSE.
Parameter Name | Data Type | Description |
---|---|---|
value1 | any | The first value for equality. |
value2 | any | The second value for equality. |
Return Variable | Data Type | Description |
---|---|---|
boolean | TRUE if values are deeply equal, else FALSE. |