mirror of https://github.com/abpframework/abp.git
4 changed files with 12 additions and 12 deletions
@ -1,9 +1,9 @@ |
|||
export const isValidProp = (name: string) => { |
|||
export const shouldQuoteProp = (key: string) => { |
|||
try { |
|||
new Function('return {}.' + name); |
|||
new Function('return {}.' + key); |
|||
} catch (_) { |
|||
return false; |
|||
return true; |
|||
} |
|||
|
|||
return true; |
|||
return false; |
|||
}; |
|||
|
|||
Loading…
Reference in new issue