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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -