Indexable OrderedMap Example

node v14.20.1
version: 1.0.0
endpointsharetweet
const { OrderedMap } = require("immutable"); OrderedMap.prototype.at = function (index) { return this._list.get(index)[1] }; const map = new OrderedMap({ a: 5, b: 6, c: 7 }); map.at(1);
Loading…

no comments

    sign in to comment