]> git.r.bdr.sh - rbdr/dotfiles/blob
7df10b2f7f948da0316f2279ea6c84fd873c1e09
[rbdr/dotfiles] /
1 'use strict';
2
3 var value = require('./valid-value')
4
5 , propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
6
7 module.exports = function (obj) {
8 var i;
9 value(obj);
10 for (i in obj) {
11 if (propertyIsEnumerable.call(obj, i)) return i;
12 }
13 return null;
14 };