Skip to content

diadorer/danger-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

danger-web

What you can not use

Spread operator for NodeList IE, for example:

const list = [ ...document.querySelectorAll('div') ]

This is because babel transpile this code to something with (related issue):

function _iterableToArray(iter) {
    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]")
        return Array.from(iter);
}

But, unfortunately, in IE:

(Symbol.iterator in document.querySelectorAll('div')) === false

You can use Array.from(nodeList) as workaround.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published