bianco.dom-to-array
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -12,4 +12,7 @@ 'use strict'; | ||
// is it a node list? | ||
// watch out window.length exists and must be filtered | ||
if (els !== window && els.length) | ||
if ( | ||
/^\[object (HTMLCollection|NodeList|Object)\]$/ | ||
.test(Object.prototype.toString.call(els)) | ||
&& typeof els.length === 'number' | ||
) | ||
return Array.from(els) | ||
@@ -25,2 +28,2 @@ else | ||
module.exports = domToArray; | ||
module.exports = domToArray; |
@@ -10,4 +10,7 @@ /** | ||
// is it a node list? | ||
// watch out window.length exists and must be filtered | ||
if (els !== window && els.length) | ||
if ( | ||
/^\[object (HTMLCollection|NodeList|Object)\]$/ | ||
.test(Object.prototype.toString.call(els)) | ||
&& typeof els.length === 'number' | ||
) | ||
return Array.from(els) | ||
@@ -14,0 +17,0 @@ else |
{ | ||
"name": "bianco.dom-to-array", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Converts any DOM node/s to a loopable array", | ||
"main": "index.js", | ||
"jsnext:main": "index.next.js", | ||
"module": "index.next.js", | ||
"scripts": { | ||
@@ -8,0 +9,0 @@ "prepublish": "npm run build && npm test", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5297
47