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