refactor(compiler): use symbols for runtime helpers
This commit is contained in:
@@ -30,6 +30,7 @@ export const isArray = Array.isArray
|
||||
export const isFunction = (val: any): val is Function =>
|
||||
typeof val === 'function'
|
||||
export const isString = (val: any): val is string => typeof val === 'string'
|
||||
export const isSymbol = (val: any): val is symbol => typeof val === 'symbol'
|
||||
export const isObject = (val: any): val is Record<any, any> =>
|
||||
val !== null && typeof val === 'object'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user