Created
October 24, 2020 03:51
-
-
Save idettman/4fa8d51a677a65b6eade977640fc0979 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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