Skip to content

new function to class constructor #266

@pherenjito

Description

@pherenjito
b = new function() {
  this.c = 'a'; 
}

converts to

b = new () => {
  this.c = 'a'; 
}

Would not this one

b = new class() {
  constructor() {
    this.c = 'a';
  }
}

be better?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions