From 8ac8ad09c71b10597a354eabf81cbafa14f00940 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 29 Jun 2020 16:52:17 -0400 Subject: playing with filtering by category --- iridescence/src/models/category.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 iridescence/src/models/category.js (limited to 'iridescence/src/models') diff --git a/iridescence/src/models/category.js b/iridescence/src/models/category.js new file mode 100644 index 0000000..689c98f --- /dev/null +++ b/iridescence/src/models/category.js @@ -0,0 +1,13 @@ +export class Category { + name: string; + subcategory: Category; + + /** + * @param {string} name + * @param {Category=} subcategory + */ + constructor(name, subcategory) { + this.name = name; + this.subcategory = subcategory; + } +} -- cgit v1.2.3