paulroth3d / jupyter-ijavascript-utils

Utility library for working with iJavaScript - a Jupyter Kernel
1 stars 0 forks source link

Create a Map object #20

Closed paulroth3d closed 1 year ago

paulroth3d commented 2 years ago

Allow for functional programming assignment of map values

utils.map.set(map, key, value) => map (with the value assigned, and returning the map)

utils.map.serialize(map) => string (json stringified map of the entitied) utils.map.deserialize(string) => map (parsed json stringified map of the entities passed as an argument)

utils.map.toJSON(map) => string (json stringified map using the reducer / human readible) utils.map.parseJSON(string) => alias of utils.map.deserialize - or vice versa

paulroth3d commented 1 year ago

Call it hashMap as the namespace Makes it easier to differentiate

include parsing an object with properties into a map

paulroth3d commented 1 year ago

Under testing with the hashMap module

paulroth3d commented 1 year ago

Committed under 1.20 - https://jupyter-ijavascript-utils.onrender.com/module-hashMap.html