...
Code Block | ||||
---|---|---|---|---|
| ||||
e = a.put(b); // e = {"colors" : "many", // "pi" : [3,1,4,1,5,6,9] // "flop" : 12 // }; |
set(path, value)
Return a copy of the Map where the given value
is set
at the hash path
Code Block | ||||
---|---|---|---|---|
| ||||
a = { "colors" : "many",
"pi" : [3,1,4,1,5,6,9]
};
a.set(["pi"], "new-thing");
// { "colors" : "many",
// "pi" : "new-thing"
// } |
values()
The values()
operator returns the values of the map to which it is applied. Without an argument, the values at the top level of the map are returned. The operator also accepts a hash path argument. For example:
...