diff --git a/index.js b/index.js index 51285c8..0ed8ebd 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,9 @@ export default function html([first, ...strings], ...values) { return values.reduce( (acc, cur) => acc.concat(cur, strings.shift()), [first] - ).join(""); + ) + .filter(Boolean) + .join(""); } export function createStore(reducer) {