User search and creation
This commit is contained in:
parent
5fa9e6efd6
commit
0458e11267
7 changed files with 109 additions and 42 deletions
|
@ -1,7 +1,7 @@
|
|||
/* An object to represent an entry in the database. */
|
||||
class Entry {
|
||||
constructor(PROPERTIES) {
|
||||
(PROPERTIES) ? Object.entries(PROPERTIES).forEach(([property, value]) => {
|
||||
(PROPERTIES && (Object.keys(PROPERTIES).length)) ? Object.entries(PROPERTIES).forEach(([property, value]) => {
|
||||
this[property] = value;
|
||||
}) : false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue