Hacker News new | ask | show | jobs
by recursive 1817 days ago
> True, but jQuery does a lot more than just id selection with $!

Yes. For a high degree of jquery-compatibility, you can use my library.

    const $ = document.querySelectorAll.bind(document);
1 comments

This comment made me spit my drink out. People forget about bind, it's nice to replace the old closure patterns.