How do I iterate through the keys in an object to display the key and values associated with it? Say the hash is the following:
hash = a: 'b' c: 'd' e: 'f'
for key, value of hash console.log "#{key} = #{value}"
Try this:
for k, v of hash console.log('%s %s', k, v)