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:
parent
0d58349432
commit
be3903d2eb
19 changed files with 107 additions and 109 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue