mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 20:30:39 -07:00
fix: elsif is not supported for unless, fixes #268
This commit is contained in:
@@ -5,10 +5,9 @@ export function isTruthy (val: any, ctx: Context): boolean {
|
||||
}
|
||||
|
||||
export function isFalsy (val: any, ctx: Context): boolean {
|
||||
if(ctx.opts.jsTruthy) {
|
||||
if (ctx.opts.jsTruthy) {
|
||||
return !val
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return val === false || undefined === val || val === null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user