Switch linting to ESLint and Prettier (#191)
* Switch linting to ESLint and Prettier * Clean up config * Prettier fixes
This commit was merged in pull request #191.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
/* global HTMLCollection: true */
|
||||
|
||||
module.exports = function(els, fn, context) {
|
||||
if (els instanceof HTMLCollection || els instanceof NodeList || els instanceof Array) {
|
||||
return Array.prototype.forEach.call(els, fn, context)
|
||||
if (
|
||||
els instanceof HTMLCollection ||
|
||||
els instanceof NodeList ||
|
||||
els instanceof Array
|
||||
) {
|
||||
return Array.prototype.forEach.call(els, fn, context);
|
||||
}
|
||||
// assume simple DOM element
|
||||
return fn.call(context, els)
|
||||
}
|
||||
return fn.call(context, els);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user