Closed Sulaimon-Abiola closed 11 months ago
Is it possible to turn the below code to a one line
<% let getProduct = await products(3) %>
<% getProduct.forEach(function(product) { %>
<% }) %>
Sure is! Here's a potential example:
- <%= (await products(3)).join("\n- ") %>
Is it possible to turn the below code to a one line
<% let getProduct = await products(3) %>
<% getProduct.forEach(function(product) { %>
<% }) %>