Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Indexable OrderedMap Example
node v14.20.1
version:
1.0.0
endpoint
share
tweet
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