Code Duplication    Length = 12-16 lines in 2 locations

src/ub.arrays.js 2 locations

@@ 67-82 (lines=16) @@
64
		var list = this;
65
		return list != null && list[list.length - 1] == value;
66
	},
67
	count: function(value, not = false){
68
		var list = this;
69
		var total = 0;
70
		for (var a = 0, al = list.length;a<al;a++){
71
			if (not) {
72
				if (list[a] != value) {
73
					total++;
74
				}
75
			}else {
76
				if (list[a] == value) {
77
					total++;
78
				}
79
			}
80
		}
81
		return total;
82
	},
83
	or: function(list2){
84
		var list = this;
85
		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) {