1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2026-03-16 15:45:45 +01:00

Removed indexByValue array utility function

This commit is contained in:
Max Guglielmi 2015-10-18 21:55:40 +11:00
commit 2da9b3dd66
12 changed files with 530 additions and 28 deletions

View file

@ -13,14 +13,5 @@ export default {
}
}
return false;
},
indexByValue: function(arr, val, caseSensitive){
let sCase = caseSensitive===undefined ? false : caseSensitive;
for (var i=0; i<arr.length; i++){
if(Str.matchCase(arr[i].toString(), sCase) == val){
return i;
}
}
return -1;
}
};