Set data structure of Java in javascript/jQuery -
What is a way to create a Java-like data structure (unique archive) in JavaScript?
For a set of strings, I only use one object with the value.
var obj = {}; Obj ["foo"] = true; Obj ["bar"] = true; How it basically works in Java, assuming that the Javascript object is implemented as a hashtable (which is normal) [/ s].
Comments
Post a Comment