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

Added eqeqeq eslint rule

This commit is contained in:
Max Guglielmi 2016-05-15 13:33:16 +10:00
commit be3903d2eb
19 changed files with 107 additions and 109 deletions

View file

@ -5,10 +5,10 @@
import Str from './string';
export default {
has: 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){
has: function (arr, val, caseSensitive) {
let sCase = Boolean(caseSensitive);
for (var i = 0, l = arr.length; i < l; i++) {
if (Str.matchCase(arr[i].toString(), sCase) === val) {
return true;
}
}