rubico
Version:
[a]synchronous functional programming
17 lines (15 loc) • 297 B
JavaScript
/**
* @name objectGetFirstKey
*
* @synopsis
* ```coffeescript [specscript]
* objectGetFirstKey(object Object) -> firstKey string
* ```
*/
const objectGetFirstKey = function (object) {
for (const key in object) {
return key
}
return undefined
}
module.exports = objectGetFirstKey