Code Duplication    Length = 12-16 lines in 2 locations

src/ub.arrays.js 2 locations

@@ 59-74 (lines=16) @@
56
		var list = this;
57
		return list != null && list.length > 0;
58
	},
59
	count: function(value, not = false){
60
		var list = this;
61
		var total = 0;
62
		for (var a = 0, al = list.length;a<al;a++){
63
			if (not) {
64
				if (list[a] != value) {
65
					total++;
66
				}
67
			}else {
68
				if (list[a] == value) {
69
					total++;
70
				}
71
			}
72
		}
73
		return total;
74
	},
75
	or: function(list2){
76
		var list = this;
77
		if (Exists(list)) {
@@ 19-30 (lines=12) @@
16
		}
17
		return -1;
18
	},
19
	lastIndexOf: function(value){
20
		var list = this;
21
		if (list.length == 0) {
22
			return -1;
23
		}
24
		for (var a = list.length-1;a>=0;a--){
25
			if (list[a] == value){
26
				return a;
27
			}
28
		}
29
		return -1;
30
	},
31
	isEqual: function(list2){
32
		var list = this;
33
		if (list == null || list2 == null) {