Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 97bfffd

Browse files
keithamuskoddsson
andauthored
refactor(html): use Array.from for clarity
Co-authored-by: Kristján Oddsson <[email protected]>
1 parent 04593d9 commit 97bfffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function processIterable(part: TemplatePart, value: unknown): boolean {
4747
if (nodes.length) part.replace(...nodes)
4848
return true
4949
} else {
50-
part.value = [...value].join(' ')
50+
part.value = Array.from(value).join(' ')
5151
return true
5252
}
5353
}

0 commit comments

Comments
 (0)