FCC-Project_Exercise-Tracker/scripts/database/entry/object.JS
2025-04-07 22:24:00 +08:00

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;