Skip to content

Instantly share code, notes, and snippets.

@idettman
Created October 24, 2020 03:51
Show Gist options
  • Save idettman/4fa8d51a677a65b6eade977640fc0979 to your computer and use it in GitHub Desktop.
Save idettman/4fa8d51a677a65b6eade977640fc0979 to your computer and use it in GitHub Desktop.
/**
* @param {Object} obj
* @returns {string}
*/
function getFirstKey(obj) {
return Object.keys(obj)[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment