mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
feat: nil/null/empty/blank literals, resolves #102
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { isFunction } from 'src/util/underscore'
|
||||
|
||||
export interface IComparable {
|
||||
equals: (rhs: any) => boolean
|
||||
gt: (rhs: any) => boolean
|
||||
geq: (rhs: any) => boolean
|
||||
lt: (rhs: any) => boolean
|
||||
leq: (rhs: any) => boolean
|
||||
}
|
||||
|
||||
export function isComparable (arg: any): arg is IComparable {
|
||||
return arg && isFunction(arg.equals)
|
||||
}
|
||||
Reference in New Issue
Block a user