"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.conditional = void 0; /** tagged template literal that will return undefined if any of the variables are not valid strings */ function conditional(strings, ...values) { const valid = values.every((v) => typeof v === 'string' && v); if (!valid) return undefined; return strings.reduce((result, str, i) => result + (values[i - 1] ?? '') + str); } exports.conditional = conditional;