SHARE
TWEET

the actual product list model

PastebinTrashMan Jan 24th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top