mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 06:20:38 -07:00
fix: for throws undefined var with a null value with strictVariables
This commit is contained in:
@@ -63,6 +63,10 @@ export function isNil (value: any): boolean {
|
||||
return value == null
|
||||
}
|
||||
|
||||
export function isUndefined (value: any): boolean {
|
||||
return value === undefined
|
||||
}
|
||||
|
||||
export function isArray (value: any): value is any[] {
|
||||
// be compatible with IE 8
|
||||
return toString.call(value) === '[object Array]'
|
||||
|
||||
Reference in New Issue
Block a user