var obj = {
"n1": 0,
"n2": 1,
"n3": 3,
"n4": 1,
"n5": 1,
"n6": 1
};
var keys = Object.keys(obj);
var index = keys.indexOf("n2");
console.log(index);
var obj = {
"n1": 0,
"n2": 1,
"n3": 3,
"n4": 1,
"n5": 1,
"n6": 1
};
var keys = Object.keys(obj);
var index = keys.indexOf("n2");
console.log(index);