Skip to content

Instantly share code, notes, and snippets.

View eivindingebrigtsen's full-sized avatar

Eivind Ingebrigtsen eivindingebrigtsen

View GitHub Profile
{
"id": "Safari5",
"ua": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1",
"device": "computer",
"touch": false
}, {
"id": "Firefox4",
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"device": "computer",
"touch": false
@eivindingebrigtsen
eivindingebrigtsen / tree.js
Created April 25, 2012 10:50 — forked from bgstaal/tree.js
Make tree structure from map object
var tree = function(map)
{
var treeStructure = {};
var names;
var name;
var i;
var numNames;
var currentObject = treeStructure;
var lastIndex;