UNPKG

hades-cli

Version:
18 lines (17 loc) 500 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const handlebars = require("handlebars"); handlebars.registerHelper('notInArray', function (items, ...options) { let file = ''; let condition; for (let option of options) { if (typeof option === 'string') { file += option; } else { condition = option; } } if (!Array.isArray(items) || !items.includes(file)) return condition.fn(this); });