equals

equals ( object compare1 , object compare2 ) : boolean

Compare objects to find if they are equals.
Note: it is possible to set more than 2 arguments, for example if you set 4 arguments, all these object must be equals to return true.

Example

if(equals("hello world", "hello world")) console("true") // -> true


See also

equalsIgnoreCase
contains
containsIgnoreCase

Parameters

compare1

The first object to compare

compare2

The second object to compare