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.
map
var searchMap = false;
mapping: function(mappingObj, searchMap) {
// code
}
mapping(mappingObj, searchMap);
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;
}