Extending Object

/#!/JoePea joe at trusktr.io
Sun Apr 24 01:15:28 UTC 2016


Are the following examples the same? Is there any reason to extend
Object manually?

```js
class Foo {
  constructor() {}
}
new Foo
```

```js
class Foo extends Object {
  constructor() { super() } // super() is required.
}
new Foo
```


More information about the es-discuss mailing list