Skip to content

Commit

Permalink
Use Array.isArray()
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Sep 27, 2023
1 parent 5a701e7 commit 849b1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templatetemplate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function TemplateTemplate(template, insertions = {}) {
Object.entries(insertions).forEach(([selector, insertion]) => {
const currentNode = importedNode.querySelector(selector);

if (insertion instanceof Array) {
if (Array.isArray(insertion)) {
const [textContent, attributes] = insertion;

Object.entries(attributes).forEach(([name, value]) => {
Expand Down

0 comments on commit 849b1af

Please sign in to comment.