Advertisement
PastebinTrashMan

the actual product list model

Jan 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. export default class ProductListModel {
  2. constructor(objArray) {
  3. try {
  4. objArray.map(obj => this.products.push(new ProductModel(obj)));
  5. } catch (e) {
  6. console.error(e);
  7. }
  8. }
  9. products = [];
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement