I want to retrieve keys() from the following Immutable Map:
var map = Immutable.fromJS({"firstKey": null, "secondKey": null });
console.log(JSON.stringify(map.keys()));
I would expect the output:
["firstKey", "secondKey"]
However this outputs:
{"_type":0,"_stack":{"node":{"ownerID":{},"entries":[["firstKey",null],["secondKey",null]]},"index":0}}
How to do it properly?
JSFiddle link: https://jsfiddle.net/o04btr3j/57/