refactor: move project to frontend directory
This commit is contained in:
4
frontend/src/data/db/DbUtil.ts
Normal file
4
frontend/src/data/db/DbUtil.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function strip_<T extends {} | object>(obj: T): T {
|
||||
Object.keys(obj).filter(e => e.startsWith('_')).forEach(k => delete (obj as any)[k]);
|
||||
return obj;
|
||||
}
|
||||
Reference in New Issue
Block a user