mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 13:20:41 -07:00
25 lines
439 B
TypeScript
25 lines
439 B
TypeScript
import { Drop } from './drop'
|
|
import { Comparable } from './comparable'
|
|
import { isNil, toValue } from '../util'
|
|
|
|
export class NullDrop extends Drop implements Comparable {
|
|
public equals (value: any) {
|
|
return isNil(toValue(value))
|
|
}
|
|
public gt () {
|
|
return false
|
|
}
|
|
public geq () {
|
|
return false
|
|
}
|
|
public lt () {
|
|
return false
|
|
}
|
|
public leq () {
|
|
return false
|
|
}
|
|
public valueOf () {
|
|
return null
|
|
}
|
|
}
|