Skip to content

Instantly share code, notes, and snippets.

View JoeChapman's full-sized avatar
🎯
Focusing

JoeChapman JoeChapman

🎯
Focusing
View GitHub Profile
@JoeChapman
JoeChapman / getItem.js
Created February 8, 2012 09:09 — forked from roundcorners/getItem.js
Return an object's key value based on the position of the key
var getItem = function(obj, i) {
var key, arr = [];
for (key in obj) {
arr.push(obj[key]);
}
return arr[i];
};