I am reading below source code in javascript:
const switchTo = (menu, select) => (e) => {
e.preventDefault();
select(e.target.value);
action(() => _.map(menu, ($val, $key) => _.set(menu, $key, false)))();
action(() => _.set(menu, e.target.value, true))();
};
what I don't understand is the first line which includes two =>
operators. What does this syntax mean? Whether we have a name for that? I don't even know how to search this kind of syntax.