Plato on Github
Report Home
node_modules/es5-ext/object/first-key.js
Maintainability
70.80
Lines of code
14
Difficulty
6.57
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; var value = require('./valid-value') , propertyIsEnumerable = Object.prototype.propertyIsEnumerable; module.exports = function (obj) { var i; value(obj); for (i in obj) { if (propertyIsEnumerable.call(obj, i)) return i; } return null; };