The collection.equal( ) method compares the collection with collection2 and returns true if they are identical (deep comparison). 
By default, a non-diacritical evaluation is performed. If you want the  evaluation to be case sensitive or to differentiate accented characters,  pass the ck diacritical constant in the option parameter. 
Note: Elements with Null values are not equal to Undefined elements.