Get Javascript object keys

Get Javascript object keys:

var obj = {yami: "code", code: "yami"};
function getObjectKeys(obj){
	return Object.keys(obj);
}
getObjectKeys(obj).forEach(key=>{
	console.log(obj[key]);
})