Code Duplication    Length = 12-16 lines in 2 locations

src/ub.arrays.core.js 2 locations

@@ 65-76 (lines=12) @@
62
		}
63
		return -1;
64
	},
65
	lastIndexOf: function(value){
66
		var list = this;
67
		if (list.length === 0) {
68
			return -1;
69
		}
70
		for (var a = list.length-1;a>=0;a--){
71
			if (list[a] == value){
72
				return a;
73
			}
74
		}
75
		return -1;
76
	},
77
	
78
	count: function(value, not = false){
79
		var list = this;
@@ 78-93 (lines=16) @@
75
		return -1;
76
	},
77
	
78
	count: function(value, not = false){
79
		var list = this;
80
		var total = 0;
81
		for (var a = 0, al = list.length;a<al;a++){
82
			if (not) {
83
				if (list[a] != value) {
84
					total++;
85
				}
86
			}else {
87
				if (list[a] == value) {
88
					total++;
89
				}
90
			}
91
		}
92
		return total;
93
	},
94
	or: function(list2){
95
		var list = this;
96
		if (Exists(list)) {