Skip to content

Instantly share code, notes, and snippets.

@keijiro
Created October 19, 2011 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/1298138 to your computer and use it in GitHub Desktop.
Save keijiro/1298138 to your computer and use it in GitHub Desktop.
Associative array in JavaScript (UnityScript)
#pragma strict
var a = {"foo": {10: "bar"}};
Debug.Log((a["foo"] as Hashtable)[10]); // prints "bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment