-
Notifications
You must be signed in to change notification settings - Fork 3
SequenceEqual
Yasser Moradi edited this page Sep 1, 2015
·
1 revision
Description:
This method accepts 2 collection as arguments and determine whether are exact duplicates, The basic overload use default comparer, but you can add comparer as an argument.
Samples:
let value1 = ['A', 'B', 'C', 'D'];
let value2 = ['A', 'B', 'C', 'D'];
console.log('Is value1 and value2 Equal => ' + value1.asEnumerable().sequenceEqual(value2));
console.log('Is value1 and value2 array Equal => ' + value1.asEnumerable()
.sequenceEqual(value2, (val1, val2) => val1.toLowerCase() == val2.toLowerCase()));