Create a class extending from ES6 Map

后端 未结 5 1178

Trying to get away with custom get/set functionality on ES6 Maps. Currently using Babel to transpile my code to ES5.

Chrome Version 41.0.2272.101 m

5条回答
  •  情话喂你
    2021-01-04 01:34

    Alternatively, you can compose the Map() class within your MapWrapper object and expose your own API. The notion of object Composition was not of much in use 5 yrs ago and so, the question and answers were tied to and tangled with Inheritance.

提交回复
热议问题