10 lines
No EOL
308 B
JavaScript
10 lines
No EOL
308 B
JavaScript
/* An object to represent an entry in the database. */
|
|
class Entry {
|
|
constructor(PROPERTIES) {
|
|
(PROPERTIES && (Object.keys(PROPERTIES).length)) ? Object.entries(PROPERTIES).forEach(([property, value]) => {
|
|
this[property] = value;
|
|
}) : false;
|
|
};
|
|
};
|
|
|
|
module.exports = Entry; |