mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 20:30:39 -07:00
26 lines
488 B
TypeScript
26 lines
488 B
TypeScript
import { Drop } from './drop'
|
|
import { IComparable } from './icomparable'
|
|
import { isNil, toValue } from '../util/underscore'
|
|
import { BlankDrop } from '../drop/blank-drop'
|
|
|
|
export class NullDrop extends Drop implements IComparable {
|
|
equals (value: any) {
|
|
return isNil(toValue(value)) || value instanceof BlankDrop
|
|
}
|
|
gt () {
|
|
return false
|
|
}
|
|
geq () {
|
|
return false
|
|
}
|
|
lt () {
|
|
return false
|
|
}
|
|
leq () {
|
|
return false
|
|
}
|
|
valueOf () {
|
|
return null
|
|
}
|
|
}
|