[Solved] Javascript associative array return TypeError
You can do something close in javascript – this function is possibly not the prettiest way to do it, but it’s generic the first argument is the “root” object, this is followed at least 1 “nodes”, and the last argument is the value function assoc(root) { var parts = arguments.slice(1); var value = parts.pop(); parts.reduce(function(result, … Read more