style: code style in some files
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user