Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class ProductListModel {
- constructor(objArray) {
- try {
- objArray.map(obj => this.products.push(new ProductModel(obj)));
- } catch (e) {
- console.error(e);
- }
- }
- products = [];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement