style: code style in some files

This commit is contained in:
Guz
2022-01-30 17:41:25 -03:00
parent e6d036784f
commit 6a5cf5edda
2 changed files with 1 additions and 3 deletions

View File

@@ -14,10 +14,8 @@ const sm = {
* @param {any} value New value;
*/
add: (path: string, value: any) => {
let data = sm.getJSON().data;
if (obj.getByString(data, `data.${path}`))
return window.alert('ERROR: Value already in storage');

View File

@@ -4,7 +4,7 @@ const resolvePath = (path: string) => {
path = path.replace(/\[(\w+)\]/g, '.$1');
path = path.replace(/^\./, '');
return path.split('.');
}
};
const obj = {
setByString: (object: object | any, newValue: any, path: string) => {