mirror of https://github.com/abpframework/abp
parent
e4bf25c583
commit
ab9ee98e28
@ -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