Code Duplication    Length = 12-16 lines in 3 locations

src/ub.arrays.core.js 3 locations

@@ 102-117 (lines=16) @@
99
		return -1;
100
	},
101
	
102
	count: function(value, not = false){
103
		var list = this;
104
		var total = 0;
105
		for (var a = 0, al = list.length;a<al;a++){
106
			if (not) {
107
				if (list[a] != value) {
108
					total++;
109
				}
110
			}else {
111
				if (list[a] == value) {
112
					total++;
113
				}
114
			}
115
		}
116
		return total;
117
	},
118
	or: function(list2){
119
		var list = this;
120
		if (Exists(list)) {
@@ 89-100 (lines=12) @@
86
		}
87
		return -1;
88
	},
89
	lastIndexOfNot: function(value){
90
		var list = this;
91
		if (list.length === 0) {
92
			return -1;
93
		}
94
		for (var a = list.length-1;a>=0;a--){
95
			if (list[a] != value){
96
				return a;
97
			}
98
		}
99
		return -1;
100
	},
101
	
102
	count: function(value, not = false){
103
		var list = this;
@@ 77-88 (lines=12) @@
74
		}
75
		return -1;
76
	},
77
	lastIndexOf: function(value){
78
		var list = this;
79
		if (list.length === 0) {
80
			return -1;
81
		}
82
		for (var a = list.length-1;a>=0;a--){
83
			if (list[a] == value){
84
				return a;
85
			}
86
		}
87
		return -1;
88
	},
89
	lastIndexOfNot: function(value){
90
		var list = this;
91
		if (list.length === 0) {