fix(core): update

This commit is contained in:
2022-03-07 15:28:32 +01:00
parent 2c1440082e
commit 0f2003d0bc
10 changed files with 275 additions and 200 deletions

14
ts/tools/exists.ts Normal file
View File

@@ -0,0 +1,14 @@
import * as plugins from '../smartobject.plugins';
/**
* checks if an object has a parameter with a given key name, returns true if yes.
* @param parentObject
* @param childParam
* @returns {boolean}
*/
export let exists = (parentObject: object, childParam: string): boolean => {
if (parentObject.hasOwnProperty(childParam)) {
return true;
}
return false;
};