function ListKeyValues(input) {
var keys = Object.keys(input);
for(var i = keys.length; --i >= 0;){
console.log(input[keys[i]]);
}
}
This is obviously a contrived example, but here's the usage:
ListKeyValues({Name: "John Doe", Age: 32});
No comments:
Post a Comment