I wrote the below code in my JS file and IE is giving error for the argument 'searchMap' when I am assigning value for it in the function.
mapping: function (mappingObj,searchMap=false) {
// code
}
Error is : Expected ')'
You are using default parameter. It is a feature of ES6, and IE does not support this.
I would suggest to convert your code to ES5, like..
mapping: function (mappingObj, searchMap) {
if (!searchMap) searchMap = false;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With