fix(v-model): handle more edge cases in looseEqual() (#379)

This commit is contained in:
Jacob Müller
2020-07-15 15:37:51 +02:00
committed by GitHub
parent 379a8af288
commit fe1b27b7f8
3 changed files with 264 additions and 31 deletions

View File

@@ -56,6 +56,7 @@ export const hasOwn = (
): key is keyof typeof val => hasOwnProperty.call(val, key)
export const isArray = Array.isArray
export const isDate = (val: unknown): val is Date => val instanceof Date
export const isFunction = (val: unknown): val is Function =>
typeof val === 'function'
export const isString = (val: unknown): val is string => typeof val === 'string'