fix: for throws undefined var with a null value with strictVariables

This commit is contained in:
Francisco Soto
2023-08-19 23:54:32 +08:00
committed by Jun Yang
parent 803a0907fc
commit dc6a301387
3 changed files with 12 additions and 2 deletions
+4
View File
@@ -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]'