🐛 Mistake in filters length (#367)
This commit is contained in:
parent
3349e9a4ca
commit
13cdb49856
1 changed files with 2 additions and 2 deletions
|
@ -70,11 +70,11 @@ const FilterList = {
|
||||||
},
|
},
|
||||||
|
|
||||||
get names() {
|
get names() {
|
||||||
return Object.keys(this).filter((p) => ['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function');
|
return Object.keys(this).filter((p) => !['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function');
|
||||||
},
|
},
|
||||||
|
|
||||||
get length() {
|
get length() {
|
||||||
return Object.keys(this).filter((p) => ['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function').length;
|
return Object.keys(this).filter((p) => !['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function').length;
|
||||||
},
|
},
|
||||||
|
|
||||||
toString() {
|
toString() {
|
||||||
|
|
Loading…
Reference in a new issue