Question : nunjucks check if in array
Answered by : kostas-minaidis
/*---- Nunjucks: Check if value is in Array ---------------------------*/
{% if 'add_user' in user_params %} do stuff in html
{% endif %}
/*---------------------------- Nunjucks: Check if value is in Array ---*/
Source : https://stackoverflow.com/questions/43339091/check-if-key-exists-in-array-in-nunjucks-template-node-js | Last Update : Mon, 14 Mar 22