Let me know if you can take the first key and the first value set by an object as you can do with an array.
var a = [1,2];
var b = {1: "first", 2: "second"};
a[0] //1
b[0] //undefined
What would be the fastest way to get only first object key-val
{1: "first"}
EDIT
I need to have like result an object result = {1: "first"};
Thanks