data.map is not a function

Objects, {} in JavaScript do not have the method .map(). It’s only for Arrays[].

So in order for your code to work change data.map() to data.products.map() since products is an array which you can iterate upon.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)