Is it possible to turn the below code to a one line
Sulaimon-Abiola opened this issue · comments
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- ") %>