InheritableMap
Inheritable version of the Immutable.Map data type
Why?
are(you(tired(of(counting(parenthesis)))))
? This package allows you to
extend the Immutable.Map data type so.you.can.use.dot(notation)
!
Installation
npm install --save inheritable-map
Usage
To inherit from Map in ES6 and add a toString override, do the following:
; { return this; }
To do the same thing in ES5:
var InheritableMap = InheritableMap; { InheritableMapprototypeconstructor;}Tableprototype = Object; Tableprototype { return this;}
Now you can construct an instance of your Map based class (ES5/ES6):
var table = ;