diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-06-29 16:52:17 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-06-29 16:52:17 -0400 |
commit | 8ac8ad09c71b10597a354eabf81cbafa14f00940 (patch) | |
tree | d6aa383df6493ab9051ea15291d154e300db85b9 /iridescence/src/models | |
parent | 14ac25266a53ed986402f808cab0ef04237c1022 (diff) | |
download | theglassyladies-8ac8ad09c71b10597a354eabf81cbafa14f00940.tar.xz theglassyladies-8ac8ad09c71b10597a354eabf81cbafa14f00940.zip |
playing with filtering by category
Diffstat (limited to 'iridescence/src/models')
-rw-r--r-- | iridescence/src/models/category.js | 13 |
1 files changed, 13 insertions, 0 deletions
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; + } +} |