mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
refactor: Drop.prototype.value => valueOf
This commit is contained in:
@@ -6,7 +6,7 @@ import { BlankDrop } from '../drop/blank-drop'
|
||||
|
||||
export class NullDrop extends Drop implements IDrop, IComparable {
|
||||
equals (value: any) {
|
||||
return isNil(isDrop(value) ? value.value() : value) || value instanceof BlankDrop
|
||||
return isNil(isDrop(value) ? value.valueOf() : value) || value instanceof BlankDrop
|
||||
}
|
||||
gt () {
|
||||
return false
|
||||
@@ -20,7 +20,7 @@ export class NullDrop extends Drop implements IDrop, IComparable {
|
||||
leq () {
|
||||
return false
|
||||
}
|
||||
value () {
|
||||
valueOf () {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user