Answer the question
In order to leave comments, you need to log in
Why does IE fail to destructure?
I have a simple code, in all browsers of norms, in ie it writes - "It is assumed that there is an identifier" on the line where the function is declared. I understand it's a support issue, but how do I fix it?
pagenavjs({
pageContainer: '#content',
navContainer: '#pagination'
});
function pagenavjs({
pageContainer,
navContainer
}) {
// Что то там ...
}
Answer the question
In order to leave comments, you need to log in
https://caniuse.com/#search=Shorthand
Don't use shorthand syntax
{ pageContainer: pageContainer , navContainer: navContainer }
pagenavjs({
pageContainer: '#content',
navContainer: '#pagination'
});
function pagenavjs(params) {
// Что то там ...
params.pageContainer
params.navContainer
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question