camsong/You-Dont-Need-jQuery

ES6 Array.from

wizardforcel opened this issue · 0 comments

Array.prototype.xxx.call(document.querySelectorAll(selector), args)

==>

Array.from(document.querySelectorAll(selector)).xxx(args)