mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
style: introduce @typescript-eslint/recommended
This commit is contained in:
@@ -2,7 +2,7 @@ import { isNil, isString, toValue } from '../util/underscore'
|
||||
import { EmptyDrop } from '../drop/empty-drop'
|
||||
|
||||
export class BlankDrop extends EmptyDrop {
|
||||
equals (value: any) {
|
||||
public equals (value: any) {
|
||||
if (value === false) return true
|
||||
if (isNil(toValue(value))) return true
|
||||
if (isString(value)) return /^\s*$/.test(value)
|
||||
|
||||
Reference in New Issue
Block a user