Code Duplication    Length = 19-19 lines in 2 locations

src/ub.arrays.core.js 1 location

@@ 77-95 (lines=19) @@
74
		}
75
		return -1;
76
	},
77
	isEqual: function(list2){
78
		var list = this;
79
		if (list == null || list2 == null) {
80
			return list == list2;
81
		}	
82
		if(list.length != list2.length){
83
			return false;
84
		}
85
		
86
		var len = list.length;
87
		
88
		for (var i = 0;i<len;i++){
89
			if(list[i] !== list2[i]){
90
				return false;
91
			}
92
		}
93
		
94
		return true;
95
	},
96
	isNotEqual: function(list2){
97
		var list = this;
98
		return !IsEqual(list, list2);

src/ub.arrays.asserts.js 1 location

@@ 9-27 (lines=19) @@
6
var arrayFuncs = {
7
8
9
	isEqual: function(list2){
10
		var list = this;
11
		if (list == null || list2 == null) {
12
			return list == list2;
13
		}	
14
		if(list.length != list2.length){
15
			return false;
16
		}
17
		
18
		var len = list.length;
19
		
20
		for (var i = 0;i<len;i++){
21
			if(list[i] !== list2[i]){
22
				return false;
23
			}
24
		}
25
		
26
		return true;
27
	},
28
	isNotEqual: function(list2){
29
		var list = this;
30
		return !IsEqual(list, list2);