A plop
helper that determines if an array includes a value.
This package is hosted on npm.
npm install @bradgarropy/plop-helper-includes
First, be sure you have plop
installed. Then, add the following line to your plopfile.js
.
plop.load("@bradgarropy/plop-helper-includes")
Once loaded, you now have access the following helpers.
Conditional template based on if an array includes a string.
{
toppings: ["pepperoni", "onions"]
}
pepperoni
onions
🐛 report bugs by filing issues
📢 provide feedback with issues or on twitter
🙋🏼♂️ use my ama or twitter to ask any other questions
Brad Garropy 💻 📖 |