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