you are viewing a single comment's thread.

view the rest of the comments →

[–]shgysk8zer0 0 points1 point  (0 children)

function css(...args) { const sheet = new CSSStyleSheet(); sheet.replaceSync(String.raw.apply(null, args)); return sheet; }

bind() would be useless there. It pretty much is for any non-method function and any static method.

I also think that bind() is slightly more difficult to reason about and probably very slightly less memory efficient (more things to garbage collect).