优化 equals 的判断

This commit is contained in:
2betop 2020-03-06 17:49:12 +08:00
parent 1bc48f1743
commit 01a8b8293a
1 changed files with 1 additions and 4 deletions

View File

@ -244,10 +244,7 @@ export const filters: {
? RegExp.$2
: resolveVariable(arg1, this as any)
: '';
if (arg1 !== undefined && arg1 !== null) {
return input;
}
fn = value => arg1 === value;
fn = value => arg1 == value;
} else {
if (directive !== 'match') {
directive = 'match';