I have a function that I am trying to convert to the new arrow syntax in ES6. It is a named function:
function sayHello(name) { console
Actually it looks like one way to name arrow functions (at least as of chrome 77...) is to do this:
"use strict"; let fn_names = {}; fn_names.foo = () => { throw new Error(); }; console.log("foo.name is: " + foo.name); try { foo(); } catch (e) { console.log(e.stack); }