Sunday, 23 April 2017

Why is the usage of util.inherits() discouraged?

According to the Node.js documentation :

Note: usage of util.inherits() is discouraged. Please use the ES6 class and extends keywords to get language level inheritance support. Also note that the two styles are semantically incompatible.

https://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor



via jimpix

No comments:

Post a Comment