Skip to content

Commit

Permalink
Simplify Array.from() in convertToSequenceDOMString
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha committed Dec 23, 2023
1 parent 63265a9 commit c88815c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function convertToSequenceDOMString(obj) {
throw new TypeError("Invalid Sequence");
}

return Array.from(obj).map(webIDLConversions.DOMString);
return Array.from(obj, webIDLConversions.DOMString);
}

// Returns true is the passed value is a valid constructor.
Expand Down

0 comments on commit c88815c

Please sign in to comment.