mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
fix: for tag not respecting Drop#valueOf(), fixes #515
This commit is contained in:
@@ -39,7 +39,7 @@ export function stringify (value: any): string {
|
||||
}
|
||||
|
||||
export function toValue (value: any): any {
|
||||
return value instanceof Drop ? value.valueOf() : value
|
||||
return (value instanceof Drop && isFunction(value.valueOf)) ? value.valueOf() : value
|
||||
}
|
||||
|
||||
export function isNumber (value: any): value is number {
|
||||
|
||||
Reference in New Issue
Block a user