to-arrow
Convert a standard function declaration to an arrow function.
Revese command: to-function
Triggers
/// to-arrow
/// 2a
Examples
ts
/// to-arrow
function foo(msg: string): void {
console.log(msg)
}
Will be converted to:
ts
const foo = (msg: string): void => {
console.log(msg)
}