bianco.dom-to-array
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -13,6 +13,6 @@ 'use strict'; | ||
if ( | ||
/^\[object (HTMLCollection|NodeList|Object)\]$/ | ||
.test(Object.prototype.toString.call(els)) | ||
/^\[object (HTMLCollection|NodeList|Object)\]$/ | ||
.test(Object.prototype.toString.call(els)) | ||
&& typeof els.length === 'number' | ||
) | ||
) | ||
return Array.from(els) | ||
@@ -19,0 +19,0 @@ else |
@@ -11,6 +11,6 @@ /** | ||
if ( | ||
/^\[object (HTMLCollection|NodeList|Object)\]$/ | ||
.test(Object.prototype.toString.call(els)) | ||
/^\[object (HTMLCollection|NodeList|Object)\]$/ | ||
.test(Object.prototype.toString.call(els)) | ||
&& typeof els.length === 'number' | ||
) | ||
) | ||
return Array.from(els) | ||
@@ -17,0 +17,0 @@ else |
{ | ||
"name": "bianco.dom-to-array", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Converts any DOM node/s to a loopable array", | ||
@@ -39,5 +39,10 @@ "main": "index.js", | ||
"devDependencies": { | ||
"jsdom": "11.7.0", | ||
"jsdom-global": "3.0.2" | ||
"@gianlucaguarini/eslint-config": "^2.0.0", | ||
"eslint": "^4.19.1", | ||
"jsdom": "11.11.0", | ||
"jsdom-global": "3.0.2", | ||
"mocha": "^5.2.0", | ||
"rollup": "^0.59.4", | ||
"rollup-plugin-node-resolve": "^3.3.0" | ||
} | ||
} |
5449
7