🐛 Mistake in filters length (#367)

This commit is contained in:
MegaPixel 2021-04-25 21:35:28 +05:45 committed by GitHub
parent 3349e9a4ca
commit 13cdb49856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {