Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return {
display_name: sm.display_name,
instruments: sm.instruments.filter(function(ins) {
return active_symbols.indexOf(ins.symbol) !== -1;
})
}
}).filter(function(sm) {
return sm.instruments.length !== 0;
})
}
}).filter(function(m) {
return m.submarkets.length !== 0;
});
//console.warn(markets, chartable_markets);
markets = menu.sortMenu(markets);
const instruments = $("#nav-menu").find(".instruments");
instruments.find('> ul').remove();
menu.refreshMenu(instruments , markets, onMenuItemClick);
});
}