Code Duplication    Length = 15-15 lines in 2 locations

src/ub.arrays.strings.js 2 locations

@@ 23-37 (lines=15) @@
20
		return -1;
21
	},
22
23
	lastIndexOfCI: function(value){
24
		var list = this;
25
		if (list.length === 0) {
26
			return -1;
27
		}
28
		for (var i = list.length-1;i>=0;i--){
29
			var str = list[i];
30
			if (str && str.constructor === String) {
31
				if (str.equalsCI(value)){
32
					return i;
33
				}
34
			}
35
		}
36
		return -1;
37
	},
38
39
	removeCI: function(value, stringReplace = false){
40
		var list = this;
@@ 7-21 (lines=15) @@
4
5
var arrayFuncs = {
6
	
7
	indexOfCI: function(value){
8
		var list = this;
9
		if (list.length === 0) {
10
			return -1;
11
		}
12
		for (var i = 0, il = list.length;i<il;i++){
13
			var str = list[i];
14
			if (str && str.constructor === String) {
15
				if (str.equalsCI(value)){
16
					return i;
17
				}
18
			}
19
		}
20
		return -1;
21
	},
22
23
	lastIndexOfCI: function(value){
24
		var list = this;