3 var eq = require('./eq')
4 , value = require('./valid-value')
7 , propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
9 module.exports = function (a, b) {
12 if (eq(value(a), value(b))) return true;
19 if (k1.length !== k2.length) return false;
20 return k1.every(function (key) {
21 if (!propertyIsEnumerable.call(b, key)) return false;
22 return eq(a[key], b[key]);